I'm using bootstrap 4 and I use card div.
The card has display flex and I can't float images, maybe because the card wants just one image.
How Can I float images inside?
I'm using bootstrap 4 and I use card div.
The card has display flex and I can't float images, maybe because the card wants just one image.
How Can I float images inside?
You can have .card-body displayed as a wrapped flexbox, and set its justify-content to flex-start (which is default). There are Bootstrap built-in classes you can use as well.
<div class="card">
<div class="card-body d-flex flex-row">
<img src="https://via.placeholder.com/150" />
<img src="https://via.placeholder.com/150" />
<img src="https://via.placeholder.com/150" />
<img src="https://via.placeholder.com/150" />
<img src="https://via.placeholder.com/150" />
<img src="https://via.placeholder.com/150" />
<img src="https://via.placeholder.com/150" />
<img src="https://via.placeholder.com/150" />
</div>
</div>