Marc Slingerland wrote:
> I wanted more flexibility than the <hr> element gave, so I defined a
> spacer bar, with simple html:
> <div class="spacer"></div>
> [...]
> This worked fine in FF, where I develop, and I thought nothing of it
> until a friend tried to access the site with IE. I've since tried
> it myself, and in IE6 the spacer shows up thicker than I wanted.
> Is there some minimum block-element height in IE? How do I get
> around this?
IE/win reads that empty spacer-div as if it has text inside - and add
line-height for it.
Solution:
Put an html-comment inside that div...
<div class="spacer"><!-- --></div>
...so IE know it's empty.
Next (just to be on the safe side) add...
.spacer {
font-size: 1px;
line-height: 0;
}
...and even IE will get the message :-)
regards
Georg
--
http://www.gunlaug.no
______________________________________________________________________
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/