I am using the code at https://www.w3schools.com/howto/howto_css_modals.asp to create an image gallery using modals. I am not sure how to create thumbnails inside the button that will open the corresponding image only, in the modal. In the code below, the thumbs, when clicked on, open both of the images inside the modal. Is it possible to just have the one image that corresponds to the thumb being clicked on open? If so, how? Thank you.
A wop bop a lu bop a womp bam boom! Tiny ad:
how do I do my own kindle-like thing - without amazon