ray wrote: > I want to apply this rule to all li elements under ul. Giving every > li element a class attribute is very tedious. Is there a solution for > this situation?
The fix can be attached to any element the same ways as any other rule-set... ul li:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; } /* Hides from IE-mac \*/ * html ul li {height: 1%;} /* End hide from IE-mac */ Probably a good idea to give the ul (not the li) a class to prevent general addition of "clearfix" to every li on a site. Call it whatever you like, but don't use the '.clearfix' class-name unless you also want to "clearfix" the ul itself. regards Georg -- http://www.gunlaug.no ______________________________________________________________________ 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/