Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1413077

    Hallo,

    i have some color sections on the page in that a background image is set and text on top. It is also full screen section.
    But if the view changes to smaler or mobile the background image is only showing the center of the image .. can i resize this backround image to mobile view so that it would be visible?

    #1413106

    Hey Sebastian,

    Thank you for the inquiry.

    The background image may not be fully visible because it has a different aspect ratio compared to the section. We could adjust its size on smaller screens, but it may result in some distortion. Kindly provide the site URL in the private field so that we can inspect the elements.

    Best regards,
    Ismael

    #1413114

    top .. thx

    #1413186

    Hi,

    We added the following css code to adjust the size and position of the background image.

    #top.page-id-734:before {
        background-repeat: no-repeat;
        background-size: 100% 100% !important;
        position: fixed;
        background-position: center center;
    }
    

    This modification might distort the image a bit. If the result is not acceptable, try to replace the “background-size” value with “contain”.

    Best regards,
    Ismael

    #1413202

    Thx for feedback.
    Yes, the images are disorted, not usable. By using “contain” it won’t fill out the full screen, only show a smaller version that fit into browser.

    #1413283

    Hi,

    You may need to revert it back to the previous value of “cover” in order to ensure the whole container is filled and maintain the aspect ratio of the background image. But as you already know, if the container has a different aspect ratio, the entire image may not be visible.

    Best regards,
    Ismael

    #1413543

    Got it ..
    background-position: center; added to custom css background image not in media query .. as simple it is :)

    Ticket can be closed

    • This reply was modified 1 year, 2 months ago by xeovision.
    #1413548

    Hi,

    Great! Glad to know that the issue has been resolved. Please let us know if you have more questions.

    Have a nice day.

    Best regards,
    Ismael

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Place background images in Mobile’ is closed to new replies.