Right

Syntax

Class
Properties
right-{value}
right: {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 right-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 right to 1px without specifying the px unit.
t1 right-1
.t1.right-1 { right: 1px; }
Set right to 1px with specifying the px unit.
t1 right-1px
.t1.right-1px { right: 1px; }
Set right to 50% of its container.
t1 right-50%
.t1.right-50\% { right: 50%; }
Set right to auto.
t1 right-auto
.t1.right-auto { right: auto; }