re: 15 CSS Relative units, how many do you know? em, rem, ex, cap, ch, ic... VIEW POST

FULL DISCUSSION
 

Careful with vh unit. Some mobile browsers have floating toolbar and in this cases if you are using 100vh with virtual scroll, when browsers toolbar is showing your content will be pushed to bottom.

 

If I had a dollar for everytime I ran into this issue..

 
 

It sounds like maybe the vi and vb units might be the answer to that since it sounds like they are based on parent element dimensions. It's a shame they aren't supported anywhere yet.

code of conduct - report abuse