Home  >  Article  >  Web Front-end  >  Detailed introduction to the left attribute in CSS

Detailed introduction to the left attribute in CSS

高洛峰
高洛峰Original
2017-03-27 09:18:063176browse

Definition and Usage

The left attribute specifies the left edge of the element. This property defines the offset between the left margin edge of the positioned element and the left edge of its containing block.

Note: If the value of the "position" attribute is "static", then setting the "left" attribute will have no effect.

Description

For static elements, it is auto; for length values, it is the corresponding absolute length; for percentage values, it is the specified value; otherwise, it is auto.

For relatively defined elements, the calculated value of left is always equal to right.

Detailed introduction to the left attribute in CSS

Possible values

Detailed introduction to the left attribute in CSS

The above is the detailed content of Detailed introduction to the left attribute in CSS. 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