Jump to content
  • 0

Разное отображение списков у WebKit и НЕ WebKit. Помогите разобраться....


ChesterHTML
 Share

Question

Здравствуйте!

Есть хтмл:


<ul class="lister">
<li>qwe</li>
<li>qwe</li>
<li>qwe</li>
<li>qwe</li>
<li>qwe</li>
</ul>

и есть ксс к нему:


*
{
margin:0;
padding:0;
}
body
{
margin:1em;
}
ul
{
margin: 5px 24px;
}
.lister {
list-style-type: upper-alpha;
}
.lister li{
font-family:"Courier New", Courier, monospace;
}

проблема в том, что у WebKit-браузеров(chrome, safari) маркеры списка чуть-чуть съезжают влево.

как это исправить?

ато открываешь страницу, например, в фоксе - всё ок, в опере тоже ок, и даже, прости господи, в ие6 всё ок, а вот хром и сафари сдвигают маркеры-буквы чуть влево.... :(

грубо говоря - у WebKit-браузеров расстояние между маркером и началом строки отличается от НЕ WebKit-браузеров.....

что интересно - начало строки во ВСЕХ браузерах начинается с одинаковой позиции.... а вот позиция маркера - меняется(у WebKit)

все браузеры самых последних версий....

P.S.: это видно более отчетливо если

list-style-type: upper-alpha;

и

font-family:"Courier New", Courier, monospace;

Edited by ChesterHTML
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy