I am working on a simple card design that is divided into 3 sections:
<div class="card" style="width: 350px; height: 250px;">
<div class="card-body">
<div class="d-flex flex-column" style="height: 100%;">
<div class="p-2" style="height: 30%">1</div>
<div class="p-2" style="height: 50%;">2</div>
<div class="p-2" style="height: 20%;">3</div>
</div>
</div>
</div>
My challenge now is to vertically align the text in the second section while leaving the other 2 sections unchanged. I have been exploring options like align-items-center
and align-self-center
, but I can't seem to achieve the desired result. Any suggestions or guidance would be greatly appreciated!
Here is the link to the fiddle for reference: here.