Show div when another div is hover - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Hover to Show

Description

Show div when another div is hover

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">
#container>div {
   display:none
}

#container>div:first-child {
   display:block
}

#container:hover>div {
   display:block
}
</style> <!--from w w w  .j av  a2 s . c o m-->
 </head> 
 <body> 
  <div id="container"> 
   <div>
     Lor 
   </div> 
   <div>
     Lor 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials