Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #583851

    Compare the two screenshots. In portrait mode I need the background photo to move left. However in landscape mode it is fine.

    These screenshots were annotated for another topic, but they have annotations for this discussion as well. Just look at the image in the background on portrait.

    What are your suggestions? Please give me CSS to move it and then let me know if you have another better solution.

    Thank you,

    Jas

    #585182

    Hey Jasmer!

    Thank you for using Enfold.

    Use this to move the background:

    @media only screen and (max-width: 767px) {
    #photo-center .av-parallax .av-parallax-inner {
        background-position: 50% 50% !important;
    }
    }

    Cheers!
    Ismael

    #585396

    Hey that helped Ismael!

    An interesting thing happened. The CSS made the top of the photo cropped.

    So, I added height: 320px !important; and it moved the photo AND made the photo smaller so I can see the entire image.

    @media only screen and (max-width: 767px) {
    #photo-center .av-parallax .av-parallax-inner {
        background-position: 50% 50% !important;
        height: 320px !important;
    }
    } /*move background image*/

    Thank you Ismael! you can close this topic..

    #585875

    Hi,

    Glad we could help :-)

    Best regards,
    Rikard

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Background image move left on mobile’ is closed to new replies.