Hi guys. Normally I use the following CSS code for clearfix.
For exemple the following code does not clear properly on IE7:
div class=clearfix
div style=width:50px; height:50px: background-image:url(image.png)
no-repeat 0 0; float:left
/div
p
blablabla blablablabla blablabla
On Oct 6, 2007, at 10:27 PM, Phillip Cavaco wrote:
Normally I use the following CSS code for clearfix.
For exemple the following code does not clear properly on IE7:
[...]
.clearfix:after{
content:.;
display:block;
height:0;
clear:both;
visibility:hidden;
}
*
On Oct 6, 2007, at 10:27 PM, Phillip Cavaco wrote:
Normally I use the following CSS code for clearfix. For exemple the
following code
does not clear properly on IE7:
[...]
.clearfix:after{
content:.;
display:block;
height:0;
clear:both;
visibility:hidden;
}
* html .clearfix{
At 11:00 AM -0700 on 10/6/07, David Hucklesby wrote about Re: [css-d]
clearfix tweak needed on IE7:
Of course, you could simply use:
.clearfix {zoom: 1;}
since only IE 5/6/7 Win recognize zoom.
Won't fix IE 5.01 Win though. You will still need the height: 1%;
if you care about that browser