Home  >  Article  >  Web Front-end  >  How to use css vertical-align property

How to use css vertical-align property

silencement
silencementOriginal
2019-05-26 10:14:422945browse

How to use css vertical-align property

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.

How to use css vertical-align property

Example

Vertically align an image:

How to use css vertical-align property

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn