CSS right div position for header, footer and center three column - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:3 Column

Description

CSS right div position for header, footer and center three column

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 {<!--   w  w w  .  j  ava2s  .c  o m-->
   margin-top:100px;
   margin-bottom:100px;
}

.left {
   float:left;
   display:inline-block;
}

.middle {
   margin-left:301px;
   display:inline-block;
}

.right {
   width:116px;
   display:inline-block;
   float:right;
}

#footer {
   margin-top:301px;
   margin-bottom:12px;
   padding:16px;
}
</style> 
 </head> 
 <body> 
  <div class="top">
    Lorem ipsum dolo 
  </div> 
  <div id="content"> 
   <div class="left">
     Lorem ipsum 
   </div> 
   <div class="middle">
     Lorem ipsum d 
   </div> 
   <div class="right">
     Lorem ipsum 
   </div> 
  </div> 
  <div id="footer">
    Lorem ipsum dolor si 
  </div>  
 </body>
</html>

Related Tutorials