Given the following HTML:
For those only have one child in the container, you can use the table-cell
and vertical-align
approach which worked reliably for positioning a single div at the bottom of its parent.
Note that using table-footer-group
as other answers mentioned will break the height calculation of parent table
.
#container {
display: table;
width: 100%;
height: 200px;
}
#item {
display: table-cell;
vertical-align: bottom;
}
Single bottom item