Create 3 column layout without using a table - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Table Column

Description

Create 3 column layout without using a 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">
div {<!--from  w  ww  . j  a v  a  2  s .  c  o  m-->
   border:2px solid Chartreuse;
}

#left {
   float:left;
}

#right {
   float:right;
}

#middle {
   overflow:hidden
}
</style> 
 </head> 
 <body> 
  <div id="parent"> 
   <div id="left">
     Lorem i 
    <br>Lorem i 
   </div> 
   <div id="right">
     Lorem i 
    <br>Lorem i 
   </div> 
   <div id="middle">
     Lorem i 
    <br>Lorem ipsum 
    <br>Lorem ipsum 
    <br>Lorem i 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials