I am looking to create individual boxes for each of these images, rather than coloring the entire row.
One approach I've tried is using a div tag with a class called "caja-img" that specifies a specific width.
HTML
<div class="col-md">
<div class="contenido">
<div class="caja-img">
<img src="img/icon1.png" alt="Autogestion">
</div>
<h3 class='text-center'>Facil y seguro!</h3>
</div>
</div>
CSS
.caja-img {
background-color: red;
}
What I want to achieve is to only color the image itself, not the entire row it is in.