Last Updated: February 25, 2016
·
151
· jebbie

did you know the use of "vh" besides "px|em|%" in css?

there is a new possibility to define the height in css, the actual viewport height, and it's quite awesome!

.section {
  height: 100vh;
}

so, the section will always be 100% of the actual viewport height and it will keep it also during window resizes :)

http://jsfiddle.net/jebbie/x31qufuf/