description & Usage
The left property affects the horizontal position of an element.
Informations
| # | Description |
|---|---|
| Default Value | auto |
| Inherited | no |
| Animatable | yes |
| Version | CSS2 |
| JavaScript syntax | object.style.left="100px" |
Browser compatibility and Support
| # | Chrome | Edge | Firefox | Safari | Opera |
|---|---|---|---|---|---|
| left |
Syntax
Values
| Values | Description |
|---|---|
| auto | default |
| length | Calculates the position of the left edge in pixels, centimeters, etc. |
| % | Calculates the position of the left edge in percentage. |
| initial | Adds this value to its default property. |
| inherit | It inherits this value from its parent tag. |