HighDots Forums  

Re: MSIE 6 widths

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Re: MSIE 6 widths in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Mikko Rantalainen
 
Posts: n/a

Default Re: MSIE 6 widths - 07-21-2004 , 06:10 AM






kchayka / 2004-07-21 06:40:
Quote:
Brian wrote:
kchayka wrote:

The bug that causes weird em font scaling at different View->Text
Size settings also messes up widths set in em units.
[ a hint to set body text size to 100% ]
(b) Did you just know this, or did you test it and figure it out?

I ran into this myself some time ago. Since the problem involved em
units, font-size:100% seemed like a logical thing to try. Happily, it
worked.
It's worth noting that body { font-size: 100% } should do nothing
(body should already have normal font size!) but still it fixes many
relational font size bugs in MSIE/win32. Using body { font-size:
1.0em }, which is *the same thing* by definition, doesn't work.
Things you just need to know to be able to live with MSIE/win32.

Another nice trick is to add
* html .float { height: 1px; }
in case you have floated elements that seem to behave incorrectly.
Just add above rule and class="float" to a broken element. Note that
the asterisk (*) at the start of the selector is important: that
hides the rule from *correctly* behaving browsers.

A nice site to check is http://www.positioniseverything.net/ -- it
has most often encountered CSS positioning bugs clearly explained
and also provides fixes for those!

--
Mikko


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.