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

Detailed introduction to the left attribute in CSS

高洛峰
Release: 2017-03-27 09:18:06
Original
3208 people have browsed it

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!

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