Make three column of divs to fill screen - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:3 Column

Description

Make three column of divs to fill 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">

div.one, div.two, div.three {
   display:inline-block; 
   height:100vh; 
   width: 32vw; 
}
body { margin: 0px; padding:0px; }
div.one { background-color: blue; }
div.two { background-color: red; }
div.three { background-color: green; }


      </style> 
 </head> <!--   www. j a v  a 2 s  .  c  om-->
 <body> 
  <div class="one"></div> 
  <div class="two"></div> 
  <div class="three"></div>  
 </body>
</html>

Related Tutorials