Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1215098
    cpb1g13
    Participant

    Hi,

    I have added a background image to a section and it does not seem to respond on small or extra small devices. The image is the same size as the container, 1500 X 750.

    I have adding different CSS codes found on the forum, but none seem to solve the issue.

    I’ve attached two screenshots: one as it’s meant to appear, on an extra large screen, and the other on an extra small screen.

    Can you please advise?

    Thanks,

    Callum.

    Url: pocketrad.com
    Worpress version: 4.6.1
    X version: 4.6.4
    Cornerstone version: 1.3.3

    #1215233
    Joao
    Moderator

    Hi There,

    You need to right on the Style box of your section:

    
    background: contain

    You will find the option on the bottom of the Cornerstone Section Tab

    Hope it helps

    Joao

    #1215948
    cpb1g13
    Participant

    Thanks Joao. That did seem to improve things, but there’s still quite a difference between screen sizes. See the screenshots, if I move the position of the phone in the image to position well on mobile, it’s out of position on desktop, and vice versa. How can I make the section responsive to the point where the relationship between text and background remains the same between mobile and desktop?

    Regards,

    Callum.

    #1215953
    cpb1g13
    Participant

    2nd attachment..

    #1216563
    Rad
    Moderator

    Hi there,

    Desktop and mobile have different screen sizes, background image relies on its container not the same how standard image works.

    It will not display 1500×750 on mobile like from the desktop. If you added it as the standard image (eg. <img>), it will then respond.

    If you prefer to maintain image aspect ratio and content overlays, you should use rev. slider and composer your layers and maintain aspect ratio.

    Thanks!

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