Laying out images with a delete tag - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Image

Description

Laying out images with a delete tag

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.container {<!--from  www  .  jav a  2 s. c  om-->
   width:100%;
   margin:0;
   padding:0;
}

div.container div.imagetiles {
   float:left;
   width:34%;
   padding:0;
}

div.container div.imagetiles img {
   width:96%;
   margin:11px;
}

div.imagetiles a {
   display:block;
   text-align:right;
   width:100%;
}
</style> 
 </head> 
 <body> 
  <div class="container"> 
   <div class="imagetiles"> 
    <img src="https://www.java2s.com/style/demo/Safari.png" alt=""> 
    <a href="http://java2s.com">Delete</a> 
   </div> 
   <div class="imagetiles"> 
    <img src="https://www.java2s.com/style/demo/Safari.png" alt=""> 
    <a href="http://java2s.com">Delete</a> 
   </div> 
   <div class="imagetiles"> 
    <img src="https://www.java2s.com/style/demo/Safari.png" alt=""> 
    <a href="http://java2s.com">Delete</a> 
   </div> 
   <div class="imagetiles"> 
    <img src="https://www.java2s.com/style/demo/Firefox.png" alt=""> 
    <a href="http://java2s.com">Delete</a> 
   </div> 
   <div class="imagetiles"> 
    <img src="https://www.java2s.com/style/demo/Safari.png" alt=""> 
    <a href="http://java2s.com">Delete</a> 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials