U
U
urajo2018-03-01 17:52:51
css
urajo, 2018-03-01 17:52:51

How to quickly limit the site in width?

The question is, on 4k monitors, the site is spreading, how can it be quickly limited in width so that it does not stretch above 1920?
For the body to prescribe the width or this will not work?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
David Halkin, 2018-03-01
@northfire

put maxvids 1920px on the main wrapper, and you should never prescribe this on the bodysuit.
in order to spread correctly - it is necessary to kick all the relative values ​​​​above 1920, that is, not a single value should be in px. here once pidalil proj for 4k you can see how it was implemented

I
ink, 2018-03-01
@AskMy

For a general wrapper in a media query, write that it has the width you need

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question