Hover to change visiblity - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Hover to change

Description

Hover to change visiblity

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">
p {<!--from   w w w.  j  a v a2  s  . c  o  m-->
   margin:0;
   padding:0
}

div {
   padding:9px
}

#action {
   visibility:hidden;
}

#action:hover {
   visibility:visible;
}

#games:hover~#action {
   visibility:visible;
}
</style> 
 </head> 
 <body> 
  <div id="home"> 
   <a href="index.php"> <p id="text-home">Lore</p> </a> 
  </div> 
  <div id="games"> 
   <a href="games/index.php"> <p id="text-games">Lorem</p> </a> 
  </div> 
  <div id="action"> 
   <a href="games/action.php"> <p id="text-action">Lorem i</p> </a> 
  </div>  
 </body>
</html>

Related Tutorials