DEV Community

Discussion on: 15 CSS Relative units, how many do you know? em, rem, ex, cap, ch, ic...

Collapse
 
mandax profile image
Anderson

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.

Collapse
 
dan503 profile image
Daniel Tonon

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.

Collapse
 
ckodan profile image
Backo
Collapse
 
bytegasm profile image
Bytegasm!

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

Collapse
 
bytegasm profile image
Bytegasm!

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