Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
chrenn
on Sept 30, 2019
|
parent
|
context
|
favorite
| on:
Avoid 100vh on Mobile Web
I recently had to deal with this issue, you'd think this had to be solved by now.
So as suggested on SO:
https://stackoverflow.com/a/55003985
,
min-height: -webkit-fill-available;
works exactly as intended in Safari (mobile and desktop), but unfortunately breaks in desktop Chrome for me, so I ended up putting it in a media query for mobile only.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
So as suggested on SO: https://stackoverflow.com/a/55003985,
works exactly as intended in Safari (mobile and desktop), but unfortunately breaks in desktop Chrome for me, so I ended up putting it in a media query for mobile only.