Setting opacity with css :hover for child element - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Hover to Show

Description

Setting opacity with css :hover for child element

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">
.rendezvous .remover {<!--from  w w w  .  j  a  va  2  s .co  m-->
   opacity:0;
   width:33px;
   position:absolute;
   top:0;
   left:16px;
}

.rendezvous:hover .remover {
   opacity:0.6;
}
</style> 
 </head> 
 <body> 
  <div class="rendezvous" style="position: relative"> 
   <img src="https://www.java2s.com/style/demo/InternetExplorer.png"> 
   <div class="remover"> 
    <a href="#">Lore</a> 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials