G
G
graf452312021-10-04 14:05:02
css
graf45231, 2021-10-04 14:05:02

How to maintain page aspect ratio on mobile?

There is an interface, it was originally made for a resolution of 1920x1080. All layout elements are large and well suited for both mobile and desktop.

I would like to get a solution that will allow, while maintaining all proportions and location, to show the same interface on a mobile device in a horizontal screen position. The task seems simple, but for the second day I can not come up with a solution.

That is, here is the interface on the desktop, I want to see exactly the same thing on the mob. How to solve this issue?
615adf614f774424048283.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
Glorious Cat, 2021-10-04
@graf45231

Hardcode the width (height) of the viewport .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question