HTML Columns in the middle of the screen - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Column Layout

Description

HTML Columns in the middle of the screen

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

.left {
   margin-left: 15%;
   width: 10%;
   background-color: black;
}
.central {<!-- www  . j  a  v a  2  s  . c  o  m-->
   width: 50%;
}
.right {
   width: 10%;
   margin-right: 15%;
   background-color: black;
}
div { float: left; height: 100%; }
body { height: 1000px;}


      </style> 
 </head> 
 <body> 
  <div class="left"> 
   <!-- 2em width --> 
  </div> 
  <div class="central"> 
   <!-- 10em width --> 
  </div> 
  <div class="right"> 
   <!-- 2em width --> 
  </div>  
 </body>
</html>

Related Tutorials