Answer the question
In order to leave comments, you need to log in
How do you create responsive design and is it always necessary?
Hello. Is it always necessary to adapt the site for all devices? If not, what dimensions do you set for the site (min and max)? If you adapt, then through what? Media queries or apply some extra. plugins?
Answer the question
In order to leave comments, you need to log in
I have long understood that it is better to do it adaptively right away. Otherwise, you will have to redo it anyway. My container looks like this:
.container {
width: 100%;
max-width: 1200px;
min-width: 320px;
margin: 0 auto;
}
Personally, I think that since the audience of mobile Internet users is almost larger than the desktop one, it needs to be adapted.
I myself use 2 methods on my own project, first I recognize the device with the Mobile_Direct script, then I enter the variable into the session, then I connect css for the mobile version.
Many may say that I am creating extra hemorrhoids, but it is necessary in the project being implemented, for example, I have an information portal being developed, and the essence of connecting the script is that if the user logs in from a mobile phone, then I don’t need to connect half of the blocks, you can just set through display:none styles, however, the weight of images, banners, as well as additional requests to remote services and the database will not go anywhere, so I don’t load them, which significantly reduces the weight of the page for the mob. version and reduce the number of queries to the database. But, as I wrote, this is what I do in this project.
And so, media queries can be dispensed with, although everyone has their own vision.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question