Is there a way to make the height of my div tag always equal to the height of the browser's window, so it adjusts automatically when the browser is resized?
I have tried using
.class {
height: 100%;
}
But this doesn't work.
I've learned that em, rem, vh, wh only affect font size, not div tags.
If I set a specific height for the body tag in pixels, then percentage works for child tags, but this isn't dynamic.
What I'm looking for: A responsive design where the page content remains visible regardless of browser size changes.
Any suggestions would be greatly appreciated. Thank you.