Make 100% Div height to fill page - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Height

Description

Make 100% Div height to fill page

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 {
   width:100%;
   height:100%;
}
</style> <!--from  w  w  w.java2  s  .  c o  m-->
 </head> 
 <body> 
  <div>
    test 
  </div>  
 </body>
</html>

Related Tutorials