I'm currently working on designing an image gallery and I've encountered an issue with displaying captions below the images. Here's the code I'm using:
<div>
<figure>
<img src="sample-image.png" />
<figcaption>Caption Here</figcaption>
</figure>
</div>
When I preview the gallery page, the layout of the images doesn't look right (see figure-1). The second image appears below the first one. I would like the images to be displayed side by side, as shown in figure-2. I'm not sure what CSS code I need to fix this issue. Can you help me out?
Thank you in advance :)