Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1395573

    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

    #1395745

    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

    #1395755

    Doesn’t seem to be working…

    #1395757

    .main_color {
    background-size: 100%!important;
    }

    This worked though :-)

    Thanks for the help

    #1395758

    Sorry..
    .main_color {
    background-size: 100%!important;
    }
    .main_color {
    background-size: contain!important;
    }

    This did…

    • This reply was modified 1 year, 9 months ago by mattwalt.
    #1395760

    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

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Fullwidth Background images’ is closed to new replies.