akshay_rahar akshay_rahar - 2 months ago 17
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

https://raharongit.github.io/posts.html

Answer

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

.post{
height : 100vh;
}