Stop using JS for 100% height
Just use this:
div {
height: 100vh;
}
vh
stands for vertical height of the browser. It updates everytime the window is resized.
1vh = 1%
Written by Minh
Related protips
1 Response
http://caniuse.com/#feat=viewport-units the browser support.
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Css
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#