akshay_rahar akshay_rahar - 11 months ago 82
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;