I have a gallery of images, that i want to work with a javascript function which will display an overlay with text and content when an image is clicked in front of the of the gallery div
i found a similar discussion on the forum [Here](https://css-tricks.com/forums/discussion/15796/text-overlay/p1 “Here”)
this is the code i’m using [On codepen](http://codepen.io/user2015864/pen/iFqCE “overlay “)
My question is why won’t the overlay stay in place and if it’s possible to have this work in a div constrained by width and height