Site logo

[Support request] Sticky container

Home Forums Support [Support request] Sticky container

Home Forums Support Sticky container

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

    Hi,

    I am trying to make a sticky container in a grid with two other containers.

    So I want the container to stay when scrolled down.

    I have tried to follow the options from the other threads, unfortunately without success.

    Thanks in advance for the effort.

    #2425265
    David
    Staff
    Customer Support

    Hi there,

    the Grid Block you used to create that layout, select that, and set its Vertical Alignment to default this will force the columns to be the same height, which we require to make the contents sticky.

    If you need to adjust the vertical alignment then you can do it that in each of the columns Container Blocks.

    Once you done that give the Grid Block an Advanced > Additional CSS Class of: has-sticky-column
    And select the Container Block you want to be sticky and give a CSS Class of: is-sticky-column

    Let me know once thats done and ill provide some CSS

    #2426075
    Wouter

    Hello,

    Thanks for you reply.

    I have followed your instructions!

    #2427083
    David
    Staff
    Customer Support

    Can you confirm the URL ? The one you provided earlier is returning a 404 error

    #2427123
    Wouter

    Hello David,

    See below.

    #2427530
    David
    Staff
    Customer Support

    Add this CSS:

    
    @media(min-width: 1024px) {
        .is-sticky-column .gb-inside-container {
            position: sticky;
            top: 0;
        }
    }
    #2427613
    Wouter

    Works perfect! Thanks for your help and quick response.

    #2427617
    David
    Staff
    Customer Support

    You’re welcome

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