Create image gallery layout view without <table> - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Table Layout

Description

Create image gallery layout view without <table>

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 {<!--from   w ww .j ava 2s .  co m-->
   width:271px;
   height:231px;
   background:Chartreuse;
}

div {
   float:left;
   width:51px;
   height:51px;
   background:yellow;
   margin:9px;
   text-align:center;
   margin-top:16px
}
</style> 
 </head> 
 <body> 
  <div id="container"> 
   <div>
     Lor 
   </div> 
   <div>
     Lor 
   </div> 
   <div>
     Lor 
   </div> 
   <div>
     Lor 
   </div> 
   <div>
     Lor 
   </div> 
   <div>
     Lor 
   </div> 
   <div>
     Lor 
   </div> 
   <div>
     Lor 
   </div> 
   <div>
     Lor 
   </div> 
   <div>
     Lore 
   </div> 
   <div>
     Lore 
   </div> 
   <div>
     Lore 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials