Home › Forums › CSS › How can a button be placed on top of an image?age? › Reply To: How can a button be placed on top of an image?age?
November 4, 2019 at 1:22 pm
#298367
Participant
You can try something like this: https://codepen.io/jeroenreijs/pen/JjjpZOg.
The popup has absolute positioning. The DIV with class .thumbnail
. Because the other button is a child of the DIV with class .gallery-item
, I added position: relative
to that class as well.
Now you can maybe play around with the positioning as they are now both in the center and therefore on top of eachother.