How To Set Div Height To 100% Of Browser Window




Here we explain how to make div height to 100% of browser window. First of all, the heigth of HTML and body should be 100%. Only then we can make any div within body with 100% height. Lets consider one example here.

How To Set Div Height To 100% Of Browser Window, Set Div Height To 100% Of Browser Window, Make Div Height To 100% Of Browser Window,  Div Height To 100% Of Browser Window, Div Height To 100%, 100% Of Browser Window, HTML, CSS, Asp.Net

Now for setting 100% height for any div, follow these code.

#outerDiv
{
      height: 100%;
}



By this way we can set div height to 100% of browser window.