Adding buttons below images on my webpage is proving to be a bit challenging. I tried using the figcaption tag, but it resulted in the images stacking on top of each other instead of side by side.
**My HTML:**
<section class="mostpurch">
<h1> Latest PC downloads... </h1>
<p> Most purchased on PC </p>
<img src="images/fallout-4.jpg" class="f41" />
<figcaption><button type="button">Add to basket</button></figcaption>
<img src="images/Tom-Clancys-The-Division.jpg" class="tctd1" />
<figcaption><button type="button">Add to basket</button></figcaption>
<img src="images/blops3.jpg" class="blops31" />
<figcaption><button type="button">Add to basket</button></figcaption>
<img src="images/acsyn.jpg" class="acsyn1" />
<figcaption><button type="button">Add to basket</button></figcaption>
</section>
I'm looking for guidance on how to adjust my HTML or CSS to achieve the desired layout. Here's how it currently looks (image).
I want the images to be displayed next to each other with buttons underneath. If there's a better way to accomplish this, please advise as I am new to web development.
Thank you in advance,
-Jack