I want the height of my div tag exactly equal to the height of the browser's window. So if you resize the browser the should adjust automatically. So what should I set my height equal to in CSS.
I have tried
.class {
height: 100%;
}
Doesn't work.
em, rem, vh, wh apparently only work with the font.
If I however, hard-code the body tag to some amount of pixels, then the percentage works for the children tags but this is not dynamic.
What I want: Just as I am viewing this stack page in my browser. I wish when I resize the browser I still get the same amount of page viewership, only resized for the new size (responsive).
Thanks.