• Resolved tadeha

    (@tadeha)


    I have a fixed-top navbar created with bootstrap as my top menu.
    When I add a sticky block on Gutenberg, the image in the block gets sticky when user scrolls but it’s still below the top menu event if top menu’s z-index is 99 and the sticky block’s z-index is 999.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Senff – a11n

    (@senff)

    Hey @tadeha

    Apologies for the late response. If this issue is still happening for you, can you share a link to your site?

    Thread Starter tadeha

    (@tadeha)

    Plugin Author Senff – a11n

    (@senff)

    Hmm, from what I can the “SMILE” logo at the top left is what you used in the Sticky Block. This is on top of everything else, though it might not look like that right away since it doesn’t have a background color:

    Is that what you mean, or are you referring to something else?

    Thread Starter tadeha

    (@tadeha)

    Scroll it please till it reaches a mobile phone prototype, then it’s behind.

    Plugin Author Senff – a11n

    (@senff)

    The main reason why this is not working is because the Sticky Block is contained within a section that has a lower Z-index than the section that holds the mobile phone prototype.

    It’s not directly an issue with the sticky block itself, but with the other sections on your page, it seems. I believe that adding this code should work, though you may have to check the settings of all your other blocks/sections:

    .home-container > section:first-child {
        z-index:999;
    }
    Thread Starter tadeha

    (@tadeha)

    Unfortunately, now the navbar is below the sections in some parts

    Plugin Author Senff – a11n

    (@senff)

    In that case, you may need to check this with your theme settings or (if you use one), your editor, to see which blocks are overlapping.

    The Z-index of the sticky block itself is set correctly at 999; it’s the fact that the container block has a Z-index of only 2, and the other sections (that overlap it) have a higher Z-index. That’s not direclty something related to the sticky block.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Z-Index not working’ is closed to new replies.