HTML CSS examples for CSS Widget:Nav Bar
UL navigation unknown padding
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .clearfix::before, .clearfix::after {<!--from w w w .j a va 2 s . co m--> content:" "; display:table; } .steps>ul { padding:0; } #wizard-navigation { position:relative; float:right; left:-51%; } #wizard-navigation>ul { list-style-type:none; padding-left:0 !important; margin-left:0; } #wizard-navigation>ul>li { list-style-type:none; margin-left:0; border-width:2px; border:2px solid Chartreuse; background:yellow; float:left; border-radius:6px; } #wizard-navigation>ul>li>ul>li { list-style-type:none; margin-left:0; float:left; } #wizard-navigation li.continue, #wizard-navigation li.preview { margin-left:11px !important; } #wizard-navigation a { display:block; font-weight:bold; color:blue; padding:11px; text-decoration:none; } #wizard-navigation li.steps a { border-right:2px solid pink; } a.no-border { border:none !important; } </style> </head> <body> <div id="wizard-navigation" class="clearfix"> <ul style="left:50%;position:relative"> <li class="steps"> <ul> <li> <a href="#">Lor</a> </li> <li> <a href="#">Lor</a> </li> <li> <a href="#">Lor</a> </li> <li> <a href="#" class="no-border">Lor</a> </li> </ul> </li> <li class="preview"> <a href="#">Lorem i</a> </li> <li class="continue"> <a href="#">Lorem ip</a> </li> </ul> </div> </body> </html>