[Support request] Header Element mobile view

Home Forums Support [Support request] Header Element mobile view

Home Forums Support Header Element mobile view

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

    Hi there,

    I’ve provided a link to my site in the details.

    My question: I’ve created a header section element that includes an image with text and buttons. On desktop view it looks nice, on mobile view however the image shows parts of the image that are not ideal.

    How I can I change this? Should I create a new header section element specifically for mobile?

    Thanks in advance,
    David

    #2303926
    Fernando
    Customer Support

    Hi David,

    You can try this CSS:

    @media (max-width: 768px) {
        .page-hero {
            background-position-x: 80%;
        }
    }
    #2303972
    David

    Hi Fernando,

    thank you, this worked – I’ve deactivated my optimization plugin (as mentioned in another support thread).

    One more question though: Can I move down the text and the buttons in mobile view only?

    Thanks!

    David

    #2303981
    Fernando
    Customer Support

    Modify your code into this:

    @media (max-width: 768px) {
        .page-hero {
            background-position-x: 80%;
        }
    
        .inside-page-hero.grid-container.grid-parent {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }
    }

    Modify the values to your preference.

    #2303983
    David

    Perfect, thank you! Resolved.

    #2303987
    Fernando
    Customer Support

    You’re welcome David!

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.