Two columns floated to right and left with content in the middle - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:2 Column

Description

Two columns floated to right and left with content in the middle

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">

#content_wrapper<!--from ww  w  . java 2 s. co m-->
{
   width: 960px;
   margin: 0 auto;
}
div.left_side{margin:0px; width:100px; padding:0px 0 0 5px; float:left;}
div.right_side{margin:0px; width:100px; padding:0px 0 0 5px; float:right;}
div.bottom {clear:both;}


      </style> 
 </head> 
 <body> 
  <div class="content_wrapper"> 
   <div class="left_side">
     LEFT SIDE 
    <br> LEFT SIDE 
    <br> LEFT SIDE 
    <br> LEFT SIDE 
    <br> LEFT SIDE 
    <br> LEFT SIDE 
    <br> LEFT SIDE 
    <br> 
   </div> 
   <div class="right_side">
     RIGHT SIDE 
    <br> RIGHT SIDE 
    <br> RIGHT SIDE 
    <br> RIGHT SIDE 
    <br> RIGHT SIDE 
    <br> RIGHT SIDE 
    <br> RIGHT SIDE 
    <br> 
   </div> 
   <div class="bottom">
     bottom content 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials