Overlaying of two image with text on below - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Image Text

Description

Overlaying of two image with text on below

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 {<!-- w ww.  j  av  a  2s . c  om-->
   position:relative;
   width:100px;
   height:100px;
}

.image {
   position:absolute;
   border:2px solid Chartreuse;
   width:inherit;
   height:inherit;
}

.imageOne {
   z-index:0;
}

.imageTwo {
   z-index:2;
}
</style> 
 </head> 
 <body> 
  <div class="container"> 
   <div class="imageOne image"></div> 
   <div class="imageTwo image"></div> 
  </div> 
  <div>
    Lorem 
  </div>  
 </body>
</html>

Related Tutorials