You add the following <meta> element to the title of your HTML document:
<meta name="viewport" content="width=device-width, initial-scale=1.0">
Then you add
max-width:100%; height:auto;
usually CSS for both the image and the image container. (It can also work for an image without a container.)
And you add
body { margin: 0; }
to get rid of the margins around the image and / or container. Thus, your image will occupy the entire width of the screen, regardless of its size.
Dianaheit
source share