I've got a div container structured like so:
<div class="text-offer_dos">
<div class="centrar">
<h3>Lorem ipsum dolor!</h3>
<h5></h5>
<p class="text"><b>Lorem ipsum dolor sit amet, consectetuer adipiscing elit</b></p>
<button class="btn btn-default btn-deal" itemprop="potentialAction" data-codigo="sieteporseis">Donec vitae</button>
</div>
</div>
My goal is to align the text at the top center of the div and position the button at the bottom.
The following CSS code didn't yield the desired result:
.centrar {
background-color: rgb(0,0,0, 0.5);
height: 390px;
display: flex;
align-items: flex-start;
justify-content: flex-start;
}
I'm seeking a solution using purely CSS without modifying the HTML structure.