Gunlaug Sørtun wrote:
> Philippe Wittenbergh wrote:
>   
>> That {font-size: 1px; line-height: 0;} was once advocated, a very 
>> long time ago, in the early days of this list. But it is full of 
>> problems, as you make you layout dependent on font- sizes. Something 
>> that is not much under control of the stylesheet author.
>>     
>
> I know it's an old "fix" and I'm aware of the problems, but (as
> mentioned) that is only if there's /any real text/ in that element. Not
> hard to avoid, and the good browsers are not affected by unavoidable
> whitespace.
>   

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.

Zoe

-- 
Zoe M. Gillenwater
Design Services Manager
UNC Highway Safety Research Center
http://www.hsrc.unc.edu


______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
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/

Reply via email to