I am struggling to display my image gallery the way I envision it. I would like to have a larger main image with the rest of the images displayed on the right side below it. The current code I have is:
<div class="gallery">
<a href="images/1.jpg">
<img class="card-img-top" src="images/1.jpg" alt="Main image" style="width: 50%;">
<div class="image-container">
<img src="images/1.jpg" alt="Image from advertisement">
<img src="images/motor.jpg" alt="Image from advertisement">
<img src="images/motor2.jpg" alt="Image from advertisement">
<img src="images/2.jpg" alt="Image from advertisement">
</div>
</a>
<a href="images/motor.jpg"></a>
<a href="images/motor2.jpg"></a>
<a href="images/2.jpg"></a>
<a href="images/1.jpg"></a>
</div>
.image-container {
display: flex;
overflow-x: auto;
}
.image-container img {
max-width: 20vh;
}
Currently, this is how it looks: https://i.sstatic.net/YJ74x.png
But, this is the desired look: https://i.sstatic.net/VuSo7.png