Left

Syntax

Class
Properties
left-{value}
left: {value};

Parameters

value
<length-percentage default-unit=1px>
value
auto
<div class="t1 w-160 h-160 relative bg-c-white shadow-4"> <div class="t1 w-32 h-32 bg-c-blue absolute left-0"></div> </div>

Specification test cases

The test cases below are imported from the Turbo CSS specification. They have been executed upon loading this page.
Set left to 1px without specifying the px unit.
t1 left-1
.t1.left-1 { left: 1px; }
Set left to 1px with specifying the px unit.
t1 left-1px
.t1.left-1px { left: 1px; }
Set left to 50% of its container.
t1 left-50%
.t1.left-50\% { left: 50%; }
Set left to auto.
t1 left-auto
.t1.left-auto { left: auto; }