HTML CSS examples for CSS Widget:Hover on list
On mouse hover list
<html> <head> <title>Lorem ipsum dolor sit</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> li {<!-- w ww.jav a 2s .c o m--> float:left; width:201px; height:31px; list-style:outside none none; border:2px solid Chartreuse; text-align:left; padding:11px; border-radius:2px; font-size:13px; font-weight:bold; color:yellow; background-color:blue; } .hidden-div { margin-top:27px; visibility:hidden; } .hidden-div a { display:block; padding:13px 17px; color:pink; background-color:OrangeRed; } li:hover .hidden-div { visibility:visible; } </style> </head> <body> <ul> <li>Lorem ipsum dolor sit <div class="hidden-div"> <a href="#">Lorem ipsum d</a> <a href="#">Lorem ipsum dol</a> <a href="#">Lorem ipsum dolor sit ame</a> <a href="#">Lorem ipsum</a> <a href="#">Lorem ipsum dolor </a> <a href="#">Lorem ipsum dolor sit amet, conse</a> <a href="#">Lorem ip</a> </div> </li> <li>Lorem ipsum dolor sit <div class="hidden-div"> <a href="#">Lorem </a> <a href="#">Lorem ipsum dolor </a> <a href="#">Lorem ipsum dolor </a> <a href="#">Lorem</a> <a href="#">Lore</a> <a href="#">Lorem </a> </div> </li> </ul> </body> </html>