Two column layout content on the right - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:2 Column

Description

Two column layout content on the right

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

body{<!--  w  w  w.j  av  a2 s  .c  o  m-->
   overflow-x:hidden;
}
#content {
   background: blue;
   height: 900px;
   position:absolute;
   width:100%;
   left:200px;
}
#sidebar {
   float: left;
   width: 200px;
   height: 900px;
   background: red
}


      </style> 
 </head> 
 <body> 
  <div id="main"> 
   <div id="content"></div> 
   <div id="sidebar"></div> 
  </div> 
  <!--#main-->  
 </body>
</html>

Related Tutorials