Looking for assistance to finish up my photo gallery project. I have created thumbnails that display 5 images at the top of my page, and below them is a div that should show the selected image in its original size when clicked. Can anyone guide me on what CSS and JavaScript code I need to add to complete this functionality? Your help would be greatly appreciated.
Thank you.
HTML:
div id="img-thumbnails">
<img src="assets/imgs/img-01.jpg">
<img src="assets/imgs/img-02.jpg">
<img src="assets/imgs/img-03.jpg">
<img src="assets/imgs/img-04.jpg">
<img src="assets/imgs/img-05.jpg">
</div>
<div id="img-original">
</div>
CSS:
#img-thumbnails {
display: flex;
justify-content: center;
flex-wrap: wrap;
}
#img-thumbnails img {
width:200px;
height:100px;
cursor: pointer;
margin-left:20px;
}
#img-original {
height:500px;
width:800px;
border:10px solid black;
margin:30px auto;
}