Creating 3 Equal Columns that take up 100% on the Browser Window Width - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:3 Column

Description

Creating 3 Equal Columns that take up 100% on the Browser Window Width

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

html, body{
   margin:0;
   padding:0;
}
div{<!--   www . j a v  a  2  s. c o  m-->
   float:left;
   height:100px;
   width:33.33%;
   background:red;
   margin:0;
   padding:0;
}


      </style> 
 </head> 
 <body> 
  <div></div> 
  <div></div> 
  <div></div>  
 </body>
</html>

Related Tutorials