Answer the question
In order to leave comments, you need to log in
How to make a one-page mobile version?
The customer wanted the regular and mobile versions of the site to be completely different - if on the desktop it is a business card site, then on the mobile it is a one-page site.
The best thing I came up with was to de-facto delete 2 different sites inside different divs:
@media screen and (max-width: 37.499em) {
.site__main {
display: none;
}
//Mobile version here
}
@media screen and (min-width: 37.5em) {
.site__small {
display: none;
}
//Desktop version here
}
Answer the question
In order to leave comments, you need to log in
There is such a thing
demo.mobiledetect.net
You can make two different sites directly.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question