Three even column tile layout - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Layout

Description

Three even column tile layout

Demo Code

ResultView the demo in separate window

<!doctype html>
<html>
 <head> 
  <style>
div#header {<!--from  w  w w  . ja  v a 2 s.  c  o  m-->
   margin-left:2%;
   background-color:Chartreuse;
   height:31px;
   width:96%;
}

ul#menu li {
   margin:11px;
   color:yellow;
   font-size:26px;
   display:inline;
   margin-top:100px;
}

ul#menu li:hover {
   color:blue;
}

div.box {
   background-color:pink;
   height:201px;
   width:201px;
   float:left;
   margin:11px;
   width:31.4%;
}

div.boxhead {
   background-color:OrangeRed;
   height:31px;
   padding:0px;
   width:100%;
}

div.boxhead p {
   font-size:151%;
   text-align:center;
   color:grey;
   height:31px;
   width:201px;
   padding:0px;
   -webkit-margin-before:0.0em;
   -webkit-margin-after:0.0em;
}

.clearfix:before,
.clearfix:after {
   content:" ";
   display:table;
}

.clearfix:after {
   clear:both;
}

div#footer {
   margin-left:2%;
   background-color:BlueViolet;
   width:96%;
}
</style> 
 </head> 
 <body> 
  <div style="margin: auto;width: 95%;" id="container"> 
   <div></div> 
   <div id="header"> 
    <ul id="menu"> 
     <li>Lore</li> 
     <li>Lorem </li> 
     <li>Lorem</li> 
     <li>Lorem ipsu</li> 
    </ul> 
   </div> 
   <div id="boxcontainer" class="clearfix"> 
    <div class="box"> 
     <div class="boxhead"> 
      <p>Lorem </p> 
      <p> </p> 
     </div> 
    </div> 
    <div class="box"> 
     <div class="boxhead"> 
      <p>Lorem ipsum dolo</p> 
     </div> 
    </div> 
    <div class="box"> 
     <div class="boxhead"> 
      <p>Lorem i</p> 
     </div> 
    </div> 
   </div> 
   <div id="footer"> 
    <p style="text-align:center">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi ullamcorper molestie lacus sed fe</p> 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials