HTML CSS examples for CSS Widget:Nav bar alignment
resize the bootstrap navbar to 900px and center it on the page
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .navbar {<!--from w ww. java2 s. c o m--> max-width:901px; height:81px; border:2px solid Chartreuse; } .navbar ul { text-align:center; } .navbar ul li { display:inline-block; padding:11px 21px; background:yellow; } </style> </head> <body> <div class="navbar"> <ul> <li> <a href="">Lore</a> </li> <li> <a href="">Lorem</a> </li> <li> <a href="">Lore</a> </li> </ul> </div> </body> </html>