Absolute Relative to Body and can't change

Hi,

I’m trying to create an overlay for a lightbox using a div. I’ve put the div within the lightbox link and over the image. When I switch the div to absolute, it’s parent is the “body” element even though the div is within the lightbox link container.

image
image

How do I change the parent in order to create the overlay?

I’ve been trying different things for about an hour, please helpl!

UPDATE: OK, this was using the GRID container. I switched my grid to columns and could get it to work. THAT SAID, I would like to be able to create rollovers for GRID ITEMS. Any ideas?


Here is my site Read-Only: LINK
(how to share your site Read-Only link)

Read-only link: https://preview.webflow.com/preview/patrick-gorman-online?utm_medium=preview_link&utm_source=designer&utm_content=patrick-gorman-online&preview=a81b54bebfa762307bb0a605233f2b4b&mode=preview

Hi Monica,

I figured this would be better since it would help out other users in the future.

Have a Great Day and Happy Designing,

~ Brandon M.
Webflow Customer Technical Support Team

1 Like