Answer the question
In order to leave comments, you need to log in
Permission change?
Hello!
I would like to ask the following question: Why do some sites, when the browser window is reduced (on a PC), adaptability is visible and it will be seen how the site looks on mobile devices, and there are sites that simply have a horizontal scroll when the window is reduced, although when loading it on mobile . does it adapt to the device?
Answer the question
In order to leave comments, you need to log in
Sites that change appearance when the window changes use media queries in the styles @media
htmlbook.ru/css/value/media , and other sites using js , you can use either ( matthewhudson.me/projects/device.js/) or php define device and apply the required styles
options how to make the adaptability of pieces 4 offhand come to mind. Why, as you describe, it's hard to say without specifics.
Different parameters are set through @media : in the first case, the screen width is set to change, and in the second, different display devices, as an option.
For example, a page might have a full-width slider that only calculates dimensions on onLoad. As a result, a block with a fixed width is formed and bursts the page.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question