Background Image and Mobile Formatting

How can I have ths image background fit on mobile devices? It is not formating properly.

HI there,

The background images of the section corresponds accordingly to the width of the device where it is viewed from as the background image is responsive. But it might be that your idea or responsiveness might not be what the code does. For you to better understand how background images works, with Background image you can hardly achieve a total responsiveness without compromises. I would like you to try this demo here which would explain how background image works.

In Cornerstone, we use the background-image: cover; which would cover the whole area of the container where we could put in the style field of the section . This is responsive enough which will always covers the whole area. The only thing to consider here is that if your image size is smaller, it will be stretch out and if you have a bigger image, it will get cut off.

Yes we can use background-size: 100% 100%; which is also responsive but your image will either be stretch out or get squeezed depending on the size of the container.

Yes we can also use background-size: 100% auto but then as soon as you resize your browser or on smaller screen sizes, you will probably have white spaces around the image.

Or we can also use background-size: contain; but then this is not a good choice because you will see white spaces around your image.

Hope this helps.