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.
We don't have time to be charming! Quick, read this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!