IE6 - too much spacing appearing above h3, how do I get rid of it?

Posted by codemonkey613 on Stack Overflow See other posts from Stack Overflow or by codemonkey613
Published on 2010-03-11T17:40:16Z Indexed on 2010/03/11 17:44 UTC
Read the original article Hit count: 457

Filed under:
|

Example: http://bit.ly/dfjvmT

If you take a look at that URL, you will see an <h3> labeled "Send Us Your Resume". Problem is -- in IE6, it has too much space at the top. It's supposed to be margin-top of 16px, but in IE6, it appears more like 24-30px.

I have a reset.css file which has zeroed all margins and paddings, so it's not that.

Just checked, both CSS and XHTML are valid.

And I notice this spacing error only appears when I put a before this <h3>. Currently, I have <div class="top"></div> which appears before this <h3>. That part takes care of rounded corners for the container. When I remove that <div>, the spacing finally matches in both IE6 and Firefox.

Of course, I need to use that <div> for rounded corners. So I'm wondering, what exactly is causing this problem, and is there a way to fix it?

Thanks

© Stack Overflow or respective owner

Related posts about css

Related posts about XHTML