HTML CSS examples for CSS Widget:UL Alignment
Align UL to right
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> #pinkbar{<!-- w w w . j av a 2s . co m--> width: 100%; height: 25px; background: pink; } ul.nav{ list-style-type: none; float: right; margin: 0; } ul.nav li{ float: right; } </style> </head> <body> <div id="pinkbar" class="cambria3black"> Tel: 111 111 1111 <ul class="nav"> <li>Test</li> <li>About</li> <li>Fees</li> </ul> </div> </body> </html>