HTML CSS examples for CSS Widget:Nav Bar
Rotated text to create vertical navigation
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> #nav {<!--from w w w.j a v a 2s.c o m--> float:left; background-color:Chartreuse; border-bottom:2px solid yellow; border-top:2px solid blue; line-height:0; width:100%; } #nav a { -webkit-transform:rotate(-91deg); -moz-transform:rotate(-91deg); -ms-transform:rotate(-91deg); -o-transform:rotate(-91deg); filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=4) } #nav a { float:left; width:6px; margin-top:121px; padding:11px 11px; text-decoration:none; font-weight:bold; color:pink; } #nav a:hover { color:OrangeRed; background-color:grey; } </style> </head> <body> <div id="nav"> <a href="#">Lorem ipsum dol</a> <a href="#">Lorem ipsum </a> <a href="#">Lorem ip</a> <a href="#">Lorem </a> <a href="#">Lorem </a> <a href="#">Lorem ipsum </a> <a href="#">Lorem ips</a> <a href="#">Lorem i</a> </div> </body> </html>