For me, I create a css-layout file linking it to my html file and request every width or you could study bootstrap and your site will be mobile without doing what I do (bootstrap is a pain to edit js for me ) As for the request, this is how I write it
in your html
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
then in your css
@media only screen and (device-width: 1280px), only screen and (max-width:1280px) { .css-element { yourcsscode:; } }
I would just write this, but you want your css for your web page, and then built the measurements as shown above, also lets you say that you want the menu bar to appear, you can create css for the main navigator, then use @media, then change the css for this navigator to display the menu bars.
and
.css-element{ display:block; }
and
.css-element{ display:none; }
Really helpful on request
Anthony
source share