I've been working on figuring out how to position text above or below an image like this:
However, I'm facing an issue where only the images are being displayed (as shown in the example):
I can't use the code from W3schools directly because my thumbnails expand and switch to a responsive carousel when clicked. I just want the name to show up alongside the thumbnails. Unfortunately, I can't share my code here, so I've attached an image showing my li> tags instead:
<div class="container">
<ul id="myGallery">
<li><img src="link.png" /></li>
<li><img src="link.png" /></li>
<li><img src="link.png" /></li>
<li><img src="link.png" /></li>
<li><img src="link.png" /></li>
</ul>
</div>