implemented a gallery with thumbnails with the help of lightGallery, the location is as in the picture, by clicking on the thumbnail the images are enlarged and everything works, and how to do the same for a large image, I'm still at a dead end. Maybe I’m not doing this at all
<div class="container-gallery" > <div class="static-img"> <img src="http:....> </div> <div class="dynamic-img" style="margin-top:0%"> <ul id="lightgalery" class="gallery"> <li data-src="https:...> <a href="#"> <img src="https:...."> </a> </li> <li data-src="https:...."> <a href="#"> <img src="https:..."> </a> </li> styles:
.container-gallery{ display: flex; flex-direction: column; border: 2px solid red; } .gallery{ display: flex; } .gallery ul { list-style: none outside none; padding-left: 0; } .gallery li { height: 100px; margin-bottom: 6px; margin-right: 6px; width: 100px; } .gallery li a { height: 100px; width: 100px; } .gallery li a img { max-width: 100px; } 