[Resolved] Container settings on an Element

Home Forums Support [Resolved] Container settings on an Element

Home Forums Support Container settings on an Element

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #785427
    Matthew

    Hi,

    Hope you are well 🙂

    I am using the “Header” element to insert the blue newsletter opt in bar at the top of my page (see linked page).

    I also want to replicate this in the footer, so I am using a Hook to do this, figured this is the best way?

    Hooks obviously don’t have the same settings as Header element so I am trying to replicate using CSS.

    If you look at the page you will see I have virtually managed to do this apart from I believe the container element of it. As it’s to the far right.

    How do I set the container to match?

    #785448
    David
    Staff
    Customer Support

    Hi there,

    you can add an inner container with the GP grid-container class like so:

    <div id="footer-smalloptin">
        <div class="grid-container">
            Column content in here
        </div>
    </div>
    #786202
    Matthew

    Hi David,

    Thanks for this! Got a strange issue though..

    The background is showing different parts of the background at the top and bottom on mobile.

    Can’t figure out why it’s doing this, doesn’t do this on the header element.

    It’s hard to explain please see this image:

    View post on imgur.com

    Any ideas why it’s doing this?

    #786209
    David
    Staff
    Customer Support

    In your #footer-smalloptin CSS add a background-size: cover; property.

    #786382
    Matthew

    That’s great thanks! All sorted.

    #786383
    David
    Staff
    Customer Support

    Glad to be of help.

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