Using CSS, make a Div to Expand the height of the page - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Height

Description

Using CSS, make a Div to Expand the height of the page

Demo Code

ResultView the demo in separate window

<html lang="en">
 <head> 
  <style>
div {<!--  w ww . j  a  va 2 s.co m-->
   background-color:Chartreuse;
   height:100vh;
}

body {
   margin:0;
}
</style> 
 </head> 
 <body translate="no"> 
  <div>
    O 
  </div>  
 </body>
</html>

Related Tutorials