HTML CSS examples for CSS Widget:Nav bar alignment
Navigation based on percentages
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .prev, .next {<!--from w w w .j av a 2 s . co m--> width:17.66667%; float:left; } ul li { float:left; width:17.66667%; background-color:Chartreuse; } .next { text-align:right; } </style> </head> <body> <div class="timeNav"> <div class="prev"> <a title="Previous">Lorem ip</a> </div> <div class="slots"> <ul> <li> <a>Lorem </a> </li> <li> <a>Lorem </a> </li> <li> <a>Lorem </a> </li> <li> <a>Lorem </a> </li> </ul> </div> <div class="next"> <a title="Next">Lore</a> </div> </div> </body> </html>