Hi Erin,
Thank you for writing in, background-images
are set to cover
by default to make sure that its element/content-band is fully covered (more info about background-images
property here).
You can not set the background-image to background-size: contain;
, because that’s not going to cover the content-band in some sizes. You can’t force to fit (background-size: 100% 100%;
) your background-image to content-band either because that is going to squeeze and/or stretch your image.
The best option you have is to switch a portrait oriented version of your image when the page is viewed on mobile. To do this, please add a class to your content band (e.g. my-class), and then adding this on your page custom CSS
@media (max-width: 480px) {
.my-class {
background-image: url(YOUR PORTRAIT ORIENTED BACKGROUND-IMAGE URL HERE) !important;
}
}
Let us know how it goes,
Cheers!