Jump to content
  • 0

Почему при изменении шрифта в IE6 разметка портится


clavin
 Share

Question

Почему при изменении шрифта для тега body таким способом

font-family:Comic Sans MS, sans-serif, Arial, Tahoma, Helvetica;

в IE6 разметка портится из-за того, что некоторые дивы меняют ширину?

Конкретно: на 3-4 пикселя увеличиваются ширины width дивов с текстом, если установлен шрифт Comic Sans MS. DOCTYPE стоит как xhtml transition. Это баг?

Edited by clavin
Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

это фича. Шрифты различаются не только начертанием, но высотой межбуквенным расстоянием и прочим.

Поэксперементируйте с line-height, word-spacing, letter-spacing

А вообще Comic Sans - зло)

Link to comment
Share on other sites

  • 0

Да, это баг, и лечится он кажется двумя путями:

1) Установить диву ширину 99% от родителя

2) Установить родителю overflow:hidden; и ширину и отрезать всё вылезающее содержимое дочернего.

Link to comment
Share on other sites

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