Y
Y
YuriyBum3342020-08-30 04:48:53
css
YuriyBum334, 2020-08-30 04:48:53

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
}


As I understand it, the problem here is promotion - the robot will see both versions of the content anyway. Am I right? Have you tried doing this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey_USB, 2020-08-30
@Sergey_USB

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 question

Ask a Question

731 491 924 answers to any question