Created Div with 3 columns - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:3 Column

Description

Created Div with 3 columns

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#hcontent {<!-- www . j  a v  a 2  s.  c  o m-->
   margin: 0 auto;
   width:960px;
}
div#hleft {
   float: left;
   width: 205px;
   max-width:205px;
   background-color:#999;
   height:200px;
}
div#middle {
   float:left;
   max-width:555px;
   width: 555px;
   background-color:#366;
}
div#right {
   float: left;
   width: 200px;
   max-width:200px;
   background-color:#F00;
   height:200px;
}


      </style> 
 </head> 
 <body> 
  <div id="hcontent"> 
   <div id="hleft">
     Test 
   </div> 
   <div id="middle">
     Middle 
   </div> 
   <div id="right">
     Right 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials