My current border has a vertical flow like this:
https://i.sstatic.net/CdUm6.png
(source: gyazo.com)
However, I want the content to flow horizontally from left to right instead of top to bottom.
When I apply float: left;
to the controlling div, it results in the following layout:
https://i.sstatic.net/ikBsJ.png
(source: gyazo.com)
The images are now positioned outside of the border. Here is a snippet of the current code for the content:
<div class="courses">
<figure>
<img src="http://atlanta.eat24hours.com/files/cuisines/v4/chinese.jpg" alt="Asian" height="300px" width="300px" />
<figcaption>Bok choi</figcaption>
</figure>
</div>
<div class="courses">
<figure>
<img src="http://atlanta.eat24hours.com/files/cuisines/v4/chinese.jpg" alt="Asian" height="300px" width="300px" />
<figcaption>Bok choi</figcaption>
</figure>
</div>
If possible, please check the jsfiddle that demonstrates the issue. Additionally, any tips on how to ensure that the text remains on the right side of the image even when the page is resized too small would be greatly appreciated. In the jsfiddle, you can observe that the text shifts below the image when the page size decreases.