I'm struggling to position the blue box at the bottom of this image, and I can't figure out why.
Here is my CSS:
.boxes {
margin-left: 4%;
margin-right: -4px;
height: 345px;
padding: 5px;
font-size: 12px;
}
.box-one{
background-image: url("uploadir.com/u/nxa8310f");
background-repeat: no-repeat;
background-size: cover;
}
.index-image-text {
padding-bottom: 0;
margin-bottom: 0;
font-weight: bold;
color: white;
background-color: #2E3192;
}
HTML:
<div class="boxes img-rounded box-one grid-20">
<h1>Pottery Painting</h1>
<p class="index-image-text">
Testing<br>
</p>
</div>
Currently, there is a slight gap on both sides, but I want the box to be at the very bottom of the image without any gaps.
Current Display:
Desired Display:
Any suggestions? Here's a fiddle for reference: jsfiddle.net/kzaLx2vb/