HTML CSS examples for CSS Widget:Nav bar alignment
Adjust CSS margin-left in navigation bar
<html> <head> <style> body {<!--from ww w . j a v a 2 s . c o m--> margin:0; padding:0; } nav { background:black; } nav ul li { list-style:none; display:inline-block; padding:6px; margin-left:-36px; margin-right:51px; } nav ul li a { text-decoration:none; color:Chartreuse; } </style> </head> <body> <div class="container"> <nav class="main_nav"> <ul> <li> <a href="">Lore</a> </li> <li> <a href="">Lorem ipsum dol</a> </li> </ul> </nav>Lorem ipsum dolor sit amet, consect </div> </body> </html>