M
M
Maxim2015-10-14 16:33:45
css
Maxim, 2015-10-14 16:33:45

How to make the site not move out when scaling?

Hello. Please tell me the site in 1920px the main content in 1000px, when I scale the site (landing page) some blocks move down or run into each other. How can you fix it?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
L
Lenar Fattakhov, 2015-10-14
@fr_end

Hire a good layout designer

A
Alexander Tyagunov, 2015-10-14
@Alexanderverd

If the site was not originally written adaptive (fluid), then you have 2 options: rewrite the entire code from 0, or add styles for display on mobile devices. Look here .

D
Dmitry Novikov, 2015-10-14
@dmitriy_novikov

it's not about adaptability, it's about browsers rounding pixel values ​​differently.
for example, you had a block of 300px, you twisted the scale and one browser calculated its new width as 132px, and the other as 133px. and everything went. so there is no point in tweaking anything.
well, if you still need to do this, then catch it through js pixel density (or another sign of scaling) and change styles depending on the browser.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question