-2

I work on a web page and I want when I narrowed the page (by the square button to the right of the page close to closing page cross), the reduced page is reduced by a width-max = 360px, ie its minimum length = 360px; how I have to program this is what you had an example of solving this problem is thank you very much.

1 Answers1

0

Use media queries for responsive designing. In your case you should write your styles inside a media query for max-width of 360px. Like:

@media only screen and (max-width: 360px) {

    .my-selector {
         /* styles */
    }

}

Learn more about Media Queries.

Hope this helps!

Saurav Rastogi
  • 9,575
  • 3
  • 29
  • 41