> It won't work in IE, but then again IE pushes past floated elemenss
> anyway.  (Although I have had the occasional glitch with Netscape, but
> for the most part it works very well.)
> 
> All you have to do is add 'class="clearfix"' to any element you want
> cleared.
> 
> ~Shelly

.clearfix:after {
    content: "."; 
    display: block; 
    height: 0; 
    clear: both; 
    visibility: hidden;
}

.clearfix {display: inline-block;}

/* Hides from IE-mac \*/
* html .clearfix {height: 1%;}
.clearfix {display: block;}
/* End hide from IE-mac */


This code makes it work in IE as well, thanks to Esther van Summeren for
sending me the link!

 - Jon
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to