HTML CSS examples for CSS Widget:Image Text
Overlaying of two image with text on below
<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>