It spans rows columns, but how do I make bootstrap 5 span multiple rows? I want to make a collage with images, and I would like the collage to look like this:
https://i.stack.imgur.com/JjnF0.png
(guess I don't have a good reputation yet...)
But anyhow, this is the code I have:
<div class="container">
<div class="row">
<div>
<img src="flowers.jpg" alt="placeholder">
</div>
<div>
<img src="flowers.jpg" alt="placeholder">
</div>
<div>
<img src="flowers.jpg" alt="placeholder">
</div>
</div>
<div>
<img src="flowers.jpg" alt="placeholder">
</div>
<div>
<img src="flowers.jpg" alt="placeholder">
</div>
</div>
It's set up to make a grid but... I can't seem to figure out how to make some of the elements span multiple rows. Why columns and not rows?
There are different ways to achieve something like this. There are these I use quite a lot.
Of course, you can use col-*-* to specify how exactly you want your columns to look and behave. There are lots of examples and useful info in the official grid system documentation.