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


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.


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.


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


Thanks, however I wish there was a fairly straight forward solution to this problem.

Code of Conduct Report abuse