HTML CSS examples for CSS Widget:Menu
Make some menu links float right and other left
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> body .nav-box {<!-- w w w . j a va 2 s .co m--> top:0; width:100%; height:auto; background:Chartreuse; overflow:hidden; } .nav-box .nav-left { display:inline; left:0; float:left; width:auto; } .nav-box .nav-right { display:inline; right:0; top:0; float:right; width:auto; } </style> </head> <body> <div class="nav-box"> <div class="nav-left"> <ul> <li>Lore</li> <li>Lore</li> <li>Lore</li> <li>Lore</li> </ul> </div> <div class="nav-right"> <ul> <li>Lore</li> <li>Lore</li> <li>Lore</li> <li>Lore</li> </ul> </div> </div> </body> </html>