HTML CSS examples for CSS Widget:Menu Hover
Pure CSS3 Lava Lamp Tab menu Hover
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> #nav, #nav ul {<!-- www.j a v a 2 s.c om--> list-style:none outside none; margin:0; padding:0; z-index:1001; } #nav { clear:both; font-size:13px; height:40px; padding:0 0 0 10px; position:relative; width:100%; } #nav .subs { left:0px; overflow:hidden; position:absolute; display:none; top:51px; z-index:3; min-height:432px; width:100%; } .colbg01 { background-color:Chartreuse; display:block !important; } .colbg02 { background-color:yellow; } .colbg03 { background-color:blue; } #nav li { float:left; display:block; padding:17px 21px 19px 21px; z-index:2; } #nav li a { color:pink; display:block; float:left; font-weight:normal; padding:0px; position:relative; text-decoration:none; font-size:15px; font-weight:bold; } #nav li:hover>a { color:OrangeRed; } #nav li:hover, #nav a:focus, #nav a:hover, #nav a:active { background:none repeat scroll 0 0 transparent; outline:0 none; } #nav li:hover .subs { display:block; } #nav ul li { background:none; width:100%; } #nav ul li a { float:none; } #nav ul li:hover>a { background-color:grey; color:BlueViolet; } #lavalamp { z-index:-2; -moz-border-bottom-colors:none; -moz-border-left-colors:none; -moz-border-right-colors:none; -moz-border-top-colors:none; border-color:Chartreuse; border-image:none; border-style:solid; border-width:11px; content:""; left:46px; margin-top:0; position:absolute; bottom:-12px; -moz-transition:all 301ms ease; -ms-transition:all 301ms ease; -o-transition:all 301ms ease; -webkit-transition:all 301ms ease; transition:all 301ms ease; } #lavalamp:hover { -moz-transition-duration:3001s; -ms-transition-duration:3001s; -o-transition-duration:3001s; -webkit-transition-duration:3001s; transition-duration:3001s; } #nav li:nth-of-type(1):hover~#lavalamp { left:46px; border-color:yellow; } #nav li:nth-of-type(2):hover~#lavalamp { left:161px; border-color:blue; } #nav li:nth-of-type(3):hover~#lavalamp { left:281px; border-color:pink; } </style> </head> <body> <ul id="nav"> <li> <a class="hsubs" href="#">Lorem i</a> <div class="subs colbg01"> Lorem ipsum </div> </li> <li> <a class="hsubs" href="#">Lorem ips</a> <div class="subs colbg02"> Lorem ipsum </div> </li> <li> <a class="hsubs" href="#">Lorem ipsu</a> <div class="subs colbg03"> Lorem ipsum </div> </li> <div id="lavalamp"></div> </ul> </body> </html>