Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1366606
    jquinn33
    Participant

    Hi! I’m trying to figure out how to resize the background image on one of my pages and have it keep it’s 100% width at different screen sizes. I’ve tried the tips I’ve found in other threads, including adding the following CSS to the customizer:

    .bg-image {
    background-size: contain !important;
    }
    .bg-image {
    background-size: cover !important;
    }
    .bg-image {
    background-size: 100% 100% !important;
    }
    .bg-image {
    background-size: 100% auto !important;
    }

    So far I’m not able to find a solution. This is only for a page where I have a background image selected in the normal page editor (not Cornerstone).

    Thank you for any possible guidance! 🙂

    #1366607
    jquinn33
    Participant
    This reply has been marked as private.
    #1366773
    Friech
    Moderator

    Hi There,

    Thanks for writing in! We can force the background image to fit on the container but it will look squeeze.

    Add this on your custom CSS on Customizer.

    .backstretch img {
    	width: 100% !important;
    	left: 0 !important;
    }

    Read this posts how background image works.

    https://community.theme.co/forums/topic/section-background-image-2/#post-691126

    https://community.theme.co/forums/topic/background-image-on-phone/#post-780991

    Cheers!

    #1367174
    jquinn33
    Participant

    Oh! That’s perfect! Just what we needed! Thank you so much, Friech!! 🙂

    #1367585
    Christopher
    Moderator

    You’re welcome.

  • <script> jQuery(function($){ $("#no-reply-1366606 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>