CSS image thumbnail roll-over to display text - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Image Text

Description

CSS image thumbnail roll-over to display text

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">
.square {<!--  www.  j  a v  a  2 s .  co  m-->
   width:251px;
   height:251px;
   background-image:url('https://www.java2s.com/style/demo/Google-Chrome.png');
   background-position:center;
   background-repeat:no-repeat;
   -moz-transition:all 0.5s ease-in-out;
   -ms-transition:all 0.5s ease-in-out;
   -o-transition:all 0.5s ease-in-out;
   -webkit-transition:all 0.5s ease-in-out;
   transition:all 0.5s ease-in-out;
}

.square:hover {
   background-color:Chartreuse;
   opacity:0.5;
   background-image:url('https://www.java2s.com/style/demo/Google-Chrome.png');
   cursor:pointer;
}
</style> 
 </head> 
 <body> 
  <div class="square">
    &nbsp; 
  </div>  
 </body>
</html>

Related Tutorials