Layout for 3 columns, left, right and center - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:3 Column

Description

Layout for 3 columns, left, right and center

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

#header {<!--from   www.  j a v  a 2 s.c  o m-->
   width: 100%;
}
.left, .center, .right {
   width: 33.33%;
   float: left;
}
.center {
   text-align: center;
}
.right {
   text-align: right;
}


      </style> 
 </head> 
 <body> 
  <div id="header"> 
   <span class="left">Left</span> 
   <span class="center">Center</span> 
   <span class="right">Right</span> 
  </div>  
 </body>
</html>

Related Tutorials