• Resolved zulff94

    (@zulff94)


    Hi awesome developers,

    When using the lightbox feature, the image shown starting from the top of the page.
    However, I have a sticky header which covers the top part of the iamge lightbox.

    After checking the css, the “top” for element #Lightbox is 50.
    How can I add 150 to the original top value? (Or make sure the lightbox image pops out in the center of screen)

    I tried to hardcode the top value to 200, and it only works on the 1st row of images. Because the top value for element #Lightbox changes depends on the row of the images.

    Image issue : https://ibb.co/xHF73Zh

    Thank you in advance! 🙂

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Miha

    (@mplusb)

    Hi @zulff94,

    Please add this code in Appearance > Customize > Addiitonal CSS:

    #lightboxOverlay, #lightbox {
    	z-index: 999999;
    }

    This will fix it.

    Warmly,
    Mihaela

    Thread Starter zulff94

    (@zulff94)

    Oh z-index! I forgot about z-index…

    Now the lightbox is on top of the sticky menu.
    Very nice!

    Thank you very much! 🙂

    Miha

    (@mplusb)

    Anytime!

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

The topic ‘Increase top value to lightbox Element’ is closed to new replies.