HTML:
<div class="parent">
<div class="child">
This text is vertically aligned to bottom.
</div>
</div>
CSS:
.parent {
width: 300px;
height: 50px;
display: table;
border: 1px solid red;
}
.child {
display: table-cell;
vertical-align: bottom;
}
Source:
https://stackoverflow.com/questions/13586171/css-vertical-align-text-bottom
Article ID: 8
Created On: Thu, Sep 3, 2020 at 4:08 AM
Last Updated On: Thu, Sep 3, 2020 at 4:08 AM
Authored by: Saeed Nobakht [saiednt@gmail.com]
Online URL: https://www.navel.ir/article/css-vertical-align-text-bottom;-8.html