Aug 12, 2018 07:29 PM
(This post was last modified: Aug 12, 2018 09:48 PM by Sir-Teabag.)
I'm having trouble working this out, i'm thinking it'll use Javascript? Any help at all will be super appreciated
Anyway so on my index I have a question mark button, and I want it so when a user clicks that, instead of an image opening up or trying to download in a new tab I would like the image to be displayed with a little X button to close it, much like the HF alerts tab.
Like this, a simple overlay.
![[Image: 2018-08-13_12-24-43.png]](https://net-paste.com/uploads/2018-08-13_12-24-43.png)
This is what I'm using so far
Not really sure how to go about it all. Thanks if anyone can help! I hope it's not too much to ask ✌
Never mind I think I finally got it on this https://www.w3schools.com/howto/tryit.as..._css_modal
Looks like ass though
Anyway so on my index I have a question mark button, and I want it so when a user clicks that, instead of an image opening up or trying to download in a new tab I would like the image to be displayed with a little X button to close it, much like the HF alerts tab.
Like this, a simple overlay.
![[Image: 2018-08-13_12-24-43.png]](https://net-paste.com/uploads/2018-08-13_12-24-43.png)
This is what I'm using so far
Code
<a href="metaexample.PNG" target="_blank" title="Click me for an example"><img src="question.png" height="23px"/>Not really sure how to go about it all. Thanks if anyone can help! I hope it's not too much to ask ✌
Never mind I think I finally got it on this https://www.w3schools.com/howto/tryit.as..._css_modal
Looks like ass though


![[Image: AAjOYL.gif]](https://vgy.me/AAjOYL.gif)