How to scale layout in mobile device for height

965 Views Asked by At

I'm building a mobile site that needs to be used equally on all mobile screens.

All dimensions in the layout are obtained for a screen of 1080 for 1920, while only the width is scaled normally on a mobile device, scrolling appears in height. How can I scale the site in height as well, avoiding using % everywhere in css?

Example: enter image description here

For width, viewport width=device-width is used, but for height, property height=device-height doesn't work

1

There are 1 best solutions below

1
AudioBubble On

You can try experimenting with vh css unit.

Also see: https://www.w3schools.com/cssref/css_units.asp