Fixed - Liquid - Fixed Layout - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Layout

Description

Fixed - Liquid - Fixed Layout

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <style type="text/css">
#left {
   float:left;
   width:151px;
   border:2px solid Chartreuse;
   background-color:yellow;
   height:51px;
}

#right {
   float:right;
   width:151px;
   border:2px solid blue;
   background-color:pink;
   height:51px;
}

#center {<!-- w ww .  j ava2  s. co  m-->
   margin:0 161px;
   border:2px solid OrangeRed;
   height:51px;
}

#footer {
   clear:both;
   margin-top:11px;
   border:2px solid grey;
}
</style> 
 </head> 
 <body> 
  <div id="left">
    Lorem 
  </div> 
  <div id="right">
    Lorem 
  </div> 
  <div id="center">
    Lorem 
  </div> 
  <div id="footer">
    Lorem ip 
  </div>  
 </body>
</html>

Related Tutorials