[PATCH] make CSS for docs compatible with IE

Alexander Belchenko bialix at ukr.net
Thu Sep 28 10:12:50 BST 2006


Martin Pool пишет:
> On 26 Sep 2006, Aaron Bentley <aaron.bentley at utoronto.ca> wrote:
>> Alexander Belchenko wrote:
>>> I make changes to font size declaration. This changes makes documents
>>> looks almost identical in both browsers. As example see attached
>>> ie-patch.png image -- how looks index.htm with new default.css in IE.
>>>  body {
>>>    background-color: #ffffff;
>>> -  color: #303030;
>>> +  color: #000000;
>>>    margin-top: 50px;
>>>    margin-left: 50px;
>>>    margin-right: 50px;
>>>    margin-bottom: 70px;
>>>    font-family: Verdana, Geneva, Arial, sans-serif;
>>> -  font-size: small;
>>> -  line-height: 180%
>>> +  line-height: 180%;
>>>    }
>>>  
>>> -/* p {
>>> -  text-indent: 3em
>>> -} */
>>> +p {
>>> +  font-size: 85%;
>>> +}
>> It doesn't seem like good style to set the font size for paragraphs,
>> because not all text falls in paragraphs, but all body text should have
>> the same base attributes.  Is there a reason we can't set the font size
>> in the body, instead?
> 
> I don't understand why we need to change the default font size *at all*.
> If the user set their browser to 14pt why not use 14pt for the body?

Size of Verdana font is visually bigger that Arial/Times New Roman. For
this reason almost all sites that use Verdana as basic font try to make
it smaller for keep in proportional with other [serif] fonts.

If simply remove font-size declaration from stylesheet then docs will
looks almost identical in IE/Firefox but it looks Big Letters.

--
Alexander







More information about the bazaar mailing list