Is there any way to have a background image fit 100% of the screen width?
Tried a few options – but seems to force the image size.
Thanks M
Hey Matt,
Thanks for your patience and the link to your site, for your background image I assume that you are using this css:
.main_color {
background: #ffffff url(/wp-content/uploads/2023/01/background-border-1.jpg) top left repeat-y scroll
}
Try adding background-size: contain; like this:
.main_color {
background: #ffffff url(/wp-content/uploads/2023/01/background-border-1.jpg) top left repeat-y scroll;
background-size: contain;
}
After applying the css, please clear your browser cache and check.
Best regards,
Mike
Doesn’t seem to be working…
.main_color {
background-size: 100%!important;
}
This worked though :-)
Thanks for the help
Sorry..
.main_color {
background-size: 100%!important;
}
.main_color {
background-size: contain!important;
}
This did…
Hi,
Glad to hear that you have this sorted out, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.
Best regards,
Mike