desandro / masonry

:love_hotel: Cascading grid layout plugin
https://masonry.desandro.com
16.28k stars 2.11k forks source link

using Overlay with masonry // Help #1113

Open vulkanus opened 4 years ago

vulkanus commented 4 years ago

Hi,

Anyone can help understand how can I add overlay with mansory to work well? When I put a overlay div, to show some text, the overlay will be position relative and will go to the top grid, all images in the masonry are in position absolute. When I force the image himself to be relative, the images came out of grid but shows the overlay correctly.

Edit: Working

09.10.2019: In some project I have two masonry script but on of them is applying in other div page, because itemSelector is "img" there is anyway to avoid that, beside changing the selector?

Thank you