CSS – Vertical Align Content in Table Cells to Bottom

To align the content in table cells at the bottom along vertical axis using CSS, set CSS vertical-align property for the table cells td with the value bottom.

The CSS code to set vertical alignment for table cells to bottom is showing in the following.

td {
  vertical-align: bottom;
}

Examples

ADVERTISEMENT

1. Align table contents to bottom

In the following example, we take a table with two columns, and three rows; and set the vertical alignment of content in table cells to bottom.

index.html

Conclusion

In this CSS Tutorial, we learned how to use CSS vertical-align property to vertically align content in the table cells at bottom, with examples.