Stop Writing JavaScript To Fix `100vh` On Mobile
DEV Community·11 points·parsajiravand·8 days ago·dev.to
Your full-screen hero looks perfect in the simulator and cuts off the CTA on a real phone. It's not a bug in your code — it's `vh` answering a question you didn't ask. Three new units fix it with zero JavaScript.
Read the full article at dev.to →
Related stories
- JavaScript for Kids | No Starch Pressnostarch.comLobsters · 1 points · over 11 years ago
- Lobsters · 3 points · over 7 years ago
- Hacker News · 1 points · 3 days ago
- DEV Community · 2 points · 5 days ago
- From WordPress to JS. A Tale of a Full Stack JavaScript Blogthefullstack.xyzLobsters · 0 points · about 9 years ago
- Lobsters · 2 points · about 11 years ago