Zoe M. Gillenwater wrote:
> What about IE, though? Even if you don't have any real text in the
> element (which you won't, because then you wouldn't set the font size
> to 1px to begin with), IE will expand boxes to hold potential text.
> So if a user preference in IE overrides the 1px font-size, the gap
> will reappear. Right? I haven't tested this, but I think this is
> what Philippe was referring to as the danger of the font-size method.
Whenever 'ignore font size' is set in IE, the gap caused by its
whitespace-bug reappear. That's what I refer to as a 'minor bug in IE'.
I don't expect pixel-perfect results in IE - or any browser, when I
override the author's styles. It just has to work, and I always test.
I hardly ever experience that IE-bug in any of my work, since HTMLTidy
manages to get rid of most unwanted whitespace. HTMLTidy is the only
tool I _always_ integrate as part of any tool-set, and nothing is passed
on to the web unless it passes Tidy.
Maybe that's why I don't see the danger with the mentioned method.
No whitespace = no IE-bug = no gap... regardless of setting.
Other tools may not do such a good job at formatting the markup, so I
guess the danger is real enough.
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/