HTML CSS examples for CSS Widget:Nav bar image
Display Logo and Nav on same bar
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .title {<!-- w w w . j ava 2s. com--> display:inline; float:left; margin:0 auto; } .nav { display:inline; float:right; margin:0 2.8%; margin-bottom:0; } ul { display:inline; float:right; list-style:none; } li { display:inline; } </style> </head> <body> <div class="header"> <div class="title"> <h1>Lorem ips</h1> </div> <!--/.title--> <nav class="nav"> <ul> <li>Lore</li> <li>Lorem ip</li> <li>Lorem i</li> </ul> </nav> <!--/.nav--> </div> <!--/.header--> </body> </html>