Forum Moderators: not2easy
.clear {clear:both; display:block; font-size:1px; height:1px; line-height:-1;}
That is not the way I would do a clear, but perhaps I am missing something?
Since line-height cannot have a negative number not sure what to make of it.
[edited by: Wlauzon at 8:32 pm (utc) on April 30, 2008]
But in a couple hours of searching I can find no reference to it being a bug fix, hack, or much else.
If this was our/my code I would just fix it or delete it, but the CSS has a few strange things in it, so am trying to track down the reasons for some.
For all I know, it might be a hack for Netscape 2.0 or DOS 3.1...
All numbers (except zero) must have units with them.
not so for line-height, it is perfectly valid, in fact it is recommended for line-height, g1smd - many don't get what inheritance does to line-height with a relative unit (it compounds!) see more on this [meyerweb.com]
Wlauzon.. I'd say it was someone's idea of a hack, it does and never did do anything, when IE had problems with empty divs all that was ever required was to set the font-size to 0 or 1px. (or overflow: hidden;)
I'd delete it!
[edited by: SuzyUK at 3:07 pm (utc) on May 7, 2008]
If this was anything but an active online store I would just redo much of it, but that is not an option here, so having to make a few small changes at a time.
I just changed the line-height -1 to 1, and it did not seem to affect anything.