CSS Overlay IMG Hover - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Hover Image

Description

CSS Overlay IMG 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">
div {<!--  w ww.j a va2  s  . co  m-->
   background:Chartreuse;
   width:351px;
   height:151px;
}

div img:hover {
   opacity:0.9;
}
</style> 
 </head> 
 <body> 
  <div> 
   <img src="https://www.java2s.com/style/demo/InternetExplorer.png"> 
  </div>  
 </body>
</html>

Related Tutorials