Type your
HTML
here:
(scripts and custom event handlers are not allowed)
<ul class="menu"> <li id="item1"><a href="#">One</a></li> <li id="item2"><a href="#">Two</a></li> <li id="item3"><a href="#">Three</a></li> <li id="item4"><a href="#">Four</a></li> <li id="item5"><a href="#">Five</a></li> <li id="item6"><a href="#">Six</a></li> </ul>
Type any
CSS
you want here:
(any properties allowed except expression, behavior and @import)
/* here's clear in action */ .menu li { float:left; } .menu li#item4 { clear:both; } /* this is to make the demo look pretty */ .menu a { display:block; border:1px solid #f90; background:#fec; padding:4px 10px; margin:0 1px 1px 0; color:#c60; text-decoration:none; font:normal normal normal 0.8em sans-serif; } .menu, .menu li { margin:0; padding:0; list-style-type:none; }
Show me!
Your results appear here: