Definition and Usage
The vertical-align attribute sets the vertical alignment of an element.
Description
This attribute defines the vertical alignment of the baseline of an inline element relative to the baseline of the row where the element is located. Allows specifying negative length values and percentage values. This lowers the element instead of raising it. In table cells, this property sets the alignment of the cell contents in the cell box.
Example
Vertically align an image:
The above is the detailed content of How to use css vertical-align property. For more information, please follow other related articles on the PHP Chinese website!