My goal is to showcase images in a grid where each set of li
elements within a ul
tag stays in the same row and spans 100% width of the container.
In the demonstration provided in the jsfiddle link, I have included 3 ul
tags to illustrate my desired layout of 3 rows of images.
You can view the jsfiddle demo here: demo link
The final output I am aiming for is shown below:
https://i.sstatic.net/zDl2r.jpg
I am uncertain about how to achieve the desired outcome where each row occupies 100% width.
Therefore, every row (ul
) may vary in the number of images it contains - ranging from 1 to 5 images per row.