akshay_rahar akshay_rahar - 1 year ago 162
CSS Question

Set division height up to desktop screen?

I want to set the height of middle division up to screen height.

If screen height is too much then it would automatically set up to screen size.

I'm talking about Coming soon (I'll update it soon!) division.

enter image description here

Source code is available is here


Answer Source

set div with class name post height relative to viewport height.

height : 100vh;
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download