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{ > height:1%; > }
Assuming your document is in strict, standard compliant mode, IE 7 doesn't see any of your clearing techniques. *] no support for generated content *] * html hack is not supported. You could add *+html .clearfix {zoom:1} /* haslayout trigger */ Philippe --- Philippe Wittenbergh <http://emps.l-c-n.com> ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/