div Height: 0 problem in IE

Posted by meo on Stack Overflow See other posts from Stack Overflow or by meo
Published on 2010-05-28T07:36:57Z Indexed on 2010/05/28 7:41 UTC
Read the original article Hit count: 174

Filed under:
|
|

to clear: both my content i use this:

CSS:

.clr {
  clear: both;
  height: 0; /* i have tried 0.001em to */
  line-height: .001em;
  overflow: hidden;
}

HTML:

<div class="clr">&nbsp;</div>

it works perfectly in every navigator. But in IE 7 & 8 the div still have a height of a few pixels. How can i avoid this?

© Stack Overflow or respective owner

Related posts about html

Related posts about css