Hover on visibility hidden elements - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Hover on list

Description

Hover on visibility hidden elements

Demo Code

ResultView the demo in separate window


<html>
 <head> 
  <style>
.title, .menu {
   display:list-item;
}

.menu {<!--  ww  w. j a  va  2s . c om-->
   visibility:hidden;
}

.child {
   display:block;
}

.title:hover + span {
   visibility:visible;
}
</style> 
 </head> 
 <body> 
  <div> 
   <span class="title">Lorem ipsum do</span> 
   <span class="menu"> <span class="child">Lorem</span> <span class="child">Lore</span> <span class="child">Lor</span> <span class="child">Lo</span> </span> 
  </div>  
 </body>
</html>

Related Tutorials