Make 100% Height and Width and Dynamic Content in two column layout - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:2 Column

Description

Make 100% Height and Width and Dynamic Content in two column layout

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">
#wrapper:after, #right:after {
   content:".";<!--from   w w w .j  a  va  2s  .c  o m-->
   display:block;
   height:0;
   clear:both;
   visibility:hidden;
   font-size:0;
}

#wrapper, #right {
   display:inline-block;
}

#wrapper, #right {
   display:block;
   -height:2px;
}

#wrapper {
   background-color:Chartreuse;
}

#left {
   float:left;
   width:301px;
   color:yellow;
}

#right {
   margin-left:301px;
}

#top {
   height:100px;
   background-color:blue;
   border-bottom:2px solid pink;
}

#content {
   background-color:WhiteSmoke;
   height:601px;
   width:1201px;
}
</style> 
 </head> 
 <body> 
  <div id="wrapper"> 
   <div id="left">
     left 
   </div> 
   <div id="right"> 
    <div id="content"> 
     <div id="top">
       top 
     </div> content 
    </div> 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials