Name
left
Synopsis
Specifies the offset between the left outer edge of a positioned element and the left edge of its containing block.
Values:
<length> | <percentage> | auto | inherit
Initial value:
auto
Applies to:
Positioned elements (where position value is relative
, absolute
, or fixed
).
Inherited:
No.
Percentages:
Refer to width of containing block.
Computed value:
For static elements, auto
.
For length values, the absolute length. For percentage values, the
specified value. For relatively positioned elements, the computed
value of left
always equals
right
. Otherwise, auto
.
Get Web Design in a Nutshell, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.