HTML CSS examples for CSS Widget:Hover on list
Li a:hover elements
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> #NewNavBar {<!--from w w w .j a v a 2 s .c om--> position:relative; margin-left:201px; width:757px; height:41px; -webkit-border-radius:5px 5px 0px 0px; -moz-border-radius:5px 5px 0px 0px; border-radius:5px 5px 0px 0px; border-top:3px solid Chartreuse; border-left:3px solid yellow; border-right:3px solid blue; border-bottom:3px solid pink; background-color:OrangeRed; line-height:42px; } li { display:inline-block; margin:0 11px 0 16px; } li a { padding:7px; } li a:hover { -webkit-border-radius:4px; -moz-border-radius:4px; border-radius:4px; border:0px solid grey; text-decoration:none; background-color:BlueViolet; } ul { list-style-type:none; margin:0; padding:0; } .nav { float:left; color:Chartreuse; } </style> </head> <body> <div id="NewNavBar"> <ul class="nav"> <li> <a href="#" id="active">Lore</a> </li> <li> <a href="#">Lorem ips</a> </li> <li> <a href="#">Lorem</a> </li> <li> <a href="#">Lore</a> </li> <li> <a href="#">Lorem</a> </li> </ul> </div> </body> </html>