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 :)
Written by Remo Vetere
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Css
Authors
Related Tags
#css
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#