SyntaxFix
Write A Post
Hire A Developer
Questions
Modern browsers support the "viewport height" unit. This will expand the div to the available viewport height. I find it more reliable than any other approach.
#some_div { height: 100vh; background: black; }