CSS left Property

In CSS, the left property specifies the horizontal position of a positioned element. It has no effect on elements that are not positioned.




Property Values

Value Description
auto Allows the browser to compute the left edge position. This is the default setting.
length Sets the left edge position in pixels, centimeters, and so on. Negative values are permitted. Learn more about length units.
% Sets the position of the left edge in percentage of the containing element. Negative values are permitted.
initial This property is set to its default value.
inherit This property is inherited from its parent element.

Supported Browsers

Property Chrome Firefox Safari Edge / IE Opera
left 1.0 1.0 1.0 5.5 5.0