Sasindu H
Sasindu H

Reputation: 1578

CSS clear both IE bug

When I use clear:both code in CSS div tag it doesn't show correctly on IE.

this is firefox: enter image description here

this is IE 6 enter image description here

You can see in firefox it's show correctly, But IE 6 it doesn't show correctly. Please help me to solve this problem. Thank you.

Please check this.

http://jsfiddle.net/sasindu555/xmKAT/

Upvotes: 2

Views: 3026

Answers (1)

clairesuzy
clairesuzy

Reputation: 27624

add font-size: 0; to #h-spacer

IE6 can't make a 1px high div it defaults to 16px(or default) height to leave room for text line-height

Upvotes: 3

Related Questions