Get a central column effect - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Column Layout

Description

Get a central column effect

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <style type="text/css">

html {height: 100%}
body {<!--   ww  w .  j  a  va  2  s  . com-->
   height: 100%;
   margin: 0;
   text-align: center;//for IE7
}
div#wrapper {
   background-color: red;
   width: 720px;
   margin: 0 auto;
   height: 100%;
   text-align: left;
}
div#content {
   background-color: #efefef;
}


      </style> 
 </head> 
 <body> 
  <div id="wrapper"> 
   <div id="content"> 
    <div style="height: 2000px">
      test 
    </div> 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials