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

Related topics