I have experimented with various methods, but none seem to work flawlessly.
My goal is to neatly display around 50 images in rows and columns, adjusting the length of each row based on the screen width.
Here are the approaches I've tried:
- Placing images directly in a
<div>
. This method works but does not align them properly. - Using Bootstrap's
row-fluid
and placing each image in aspan2
, but this causes the images to float and sometimes stack incorrectly. - Utilizing a table, which can result in dangling rows if wrapping is required.
Is there a recommended way to achieve this using either Bootstrap or plain HTML/CSS?