Reputation: 237
This is what i'm trying to create CodePen example
The idea is that the popup should work exactly like the Pinterest Link
The problems i have are:
I try to figure this out for days already and can't get it. Any help is welcome :) tnx!
Upvotes: 0
Views: 267
Reputation: 1871
Instead of using anchor tag for the close button like this :
<div class="close"><a href="#portfolio">close</a></div>
Do this instead :
<span class="close">Close</span>
Don't forget to add cursor:pointer
style for .close
class.
Your problem will be solved.
Right now, the image that triggers popup disappears when you click close button on firefox just in case if you haven't checked on it yet. So, better not use anchor tag for the close button. My suggestion would be Never use anchor tag for close button.
Hope this helps.
Upvotes: 1