PDA

View Full Version : using hr to clear in IE


Bobbo171
08-08-2006, 03:47 AM
I am using a hr to clear my floats with these styles applied

hr {
visibility: hidden;
clear: both;
}

In firefox it leaves the expected 1px gap that I want, but in IE It leaves like a 6px gap which looks horrible
Any Ideas how to fix it

_Aerospace_Eng_
08-08-2006, 04:02 AM
hr {
visibility: hidden;
clear: both;
line-height:0px;
font-size:0;
height:0;
margin:0;
padding:0;
}
You may want to read this article: http://www.positioniseverything.net/easyclearing.html

Bobbo171
08-08-2006, 04:05 AM
You may want to read this article: http://www.positioniseverything.net/easyclearing.html
You know I always check there before I post normally, but I was so caught up with being aggreviated at IE I didnt even bother to check. Thanks a lot!