[css-d] clearfix tweak needed on IE7

2007-10-06 Thread Phillip Cavaco
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

Re: [css-d] clearfix tweak needed on IE7

2007-10-06 Thread Philippe Wittenbergh
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; } *

Re: [css-d] clearfix tweak needed on IE7

2007-10-06 Thread David Hucklesby
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{

Re: [css-d] clearfix tweak needed on IE7

2007-10-06 Thread Bob Rosenberg
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