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

How to use css vertical-align property

silencement
Release: 2019-05-26 10:14:42
Original
2985 people have browsed it

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template