PositioningTop / Right / Bottom / Left

Top / Right / Bottom / Left

Controls placement of positioned elements.

Top

Controls the top placement of positioned elements.

Widely available

This feature is well established and works across many devices and browser versions.

Chrome
Edge
Firefox
Safari
ClassStyle
t-0top: 0rem;
t-1top: 0.25rem;
t-2top: 0.5rem;
t-3top: 0.75rem;
t-4top: 1rem;
t-5top: 1.25rem;
t-6top: 1.5rem;
t-7top: 1.75rem;
t-8top: 2rem;
t-9top: 2.25rem;
t-10top: 2.5rem;
t-11top: 2.75rem;
t-12top: 3rem;
t-13top: 3.25rem;
t-14top: 3.5rem;
t-15top: 3.75rem;
t-16top: 4rem;
t-fulltop: 100%;
t-halftop: 50%;
A
<div class="p-r d-18 sm:d-32 tc-white">
<div class="p-a i-0 bo-1"></div>
<div class="p-a t-0 r-0 d-f d-12 ai-c jc-c bg-indigo p-4">A</div>
</div>

Controls the right placement of positioned elements.

Widely available

This feature is well established and works across many devices and browser versions.

Chrome
Edge
Firefox
Safari
ClassStyle
r-0right: 0rem;
r-1right: 0.25rem;
r-2right: 0.5rem;
r-3right: 0.75rem;
r-4right: 1rem;
r-5right: 1.25rem;
r-6right: 1.5rem;
r-7right: 1.75rem;
r-8right: 2rem;
r-9right: 2.25rem;
r-10right: 2.5rem;
r-11right: 2.75rem;
r-12right: 3rem;
r-13right: 3.25rem;
r-14right: 3.5rem;
r-15right: 3.75rem;
r-16right: 4rem;
r-fullright: 100%;
r-halfright: 50%;
A
<div class="p-r d-18 sm:d-32 tc-white">
<div class="p-a i-0 bo-1"></div>
<div class="p-a bo-0 r-0 d-f d-12 ai-c jc-c bg-indigo p-4">A</div>
</div>

Bottom

Controls the bottom placement of positioned elements.

Widely available

This feature is well established and works across many devices and browser versions.

Chrome
Edge
Firefox
Safari
ClassStyle
bo-0bottom: 0rem;
bo-1bottom: 0.25rem;
bo-2bottom: 0.5rem;
bo-3bottom: 0.75rem;
bo-4bottom: 1rem;
bo-5bottom: 1.25rem;
bo-6bottom: 1.5rem;
bo-7bottom: 1.75rem;
bo-8bottom: 2rem;
bo-9bottom: 2.25rem;
bo-10bottom: 2.5rem;
bo-11bottom: 2.75rem;
bo-12bottom: 3rem;
bo-13bottom: 3.25rem;
bo-14bottom: 3.5rem;
bo-15bottom: 3.75rem;
bo-16bottom: 4rem;
bo-fullbottom: 100%;
bo-halfbottom: 50%;
A
<div class="p-r d-18 sm:d-32 tc-white">
<div class="p-a i-0 bo-1"></div>
<div class="p-a bo-0 l-0 d-f d-12 ai-c jc-c bg-indigo p-4">A</div>
</div>

Left

Controls the left placement of positioned elements.

Widely available

This feature is well established and works across many devices and browser versions.

Chrome
Edge
Firefox
Safari
ClassStyle
l-0left: 0rem;
l-1left: 0.25rem;
l-2left: 0.5rem;
l-3left: 0.75rem;
l-4left: 1rem;
l-5left: 1.25rem;
l-6left: 1.5rem;
l-7left: 1.75rem;
l-8left: 2rem;
l-9left: 2.25rem;
l-10left: 2.5rem;
l-11left: 2.75rem;
l-12left: 3rem;
l-13left: 3.25rem;
l-14left: 3.5rem;
l-15left: 3.75rem;
l-16left: 4rem;
l-fullleft: 100%;
l-halfleft: 50%;
A
<div class="p-r d-18 sm:d-32 tc-white">
<div class="p-a i-0 bo-1"></div>
<div class="p-a t-0 l-0 d-f d-12 ai-c jc-c bg-indigo p-4">A</div>
</div>

Inset

Controls the placement of positioned elements in all directions.

Widely available

This feature is well established and works across many devices and browser versions.

Chrome
Edge
Firefox
Safari
ClassStyle
i-0inset: 0rem;
i-1inset: 0.25rem;
i-2inset: 0.5rem;
i-3inset: 0.75rem;
i-4inset: 1rem;
i-5inset: 1.25rem;
i-6inset: 1.5rem;
i-7inset: 1.75rem;
i-8inset: 2rem;
i-9inset: 2.25rem;
i-10inset: 2.5rem;
i-11inset: 2.75rem;
i-12inset: 3rem;
i-13inset: 3.25rem;
i-14inset: 3.5rem;
i-15inset: 3.75rem;
i-16inset: 4rem;
i-fullinset: 100%;
i-halfinset: 50%;
A
<div class="p-r d-18 sm:d-32 tc-white">
<div class="p-a i-0 bo-1"></div>
<div class="p-a i-0 d-f ai-c jc-c bg-indigo p-4">A</div>
</div>

Inset X

Controls the placement of positioned elements in the horizontal direction.

ClassStyle
ix-0left: 0rem;
ix-1left: 0.25rem;
ix-2left: 0.5rem;
ix-3left: 0.75rem;
ix-4left: 1rem;
ix-5left: 1.25rem;
ix-6left: 1.5rem;
ix-7left: 1.75rem;
ix-8left: 2rem;
ix-9left: 2.25rem;
ix-10left: 2.5rem;
ix-11left: 2.75rem;
ix-12left: 3rem;
ix-13left: 3.25rem;
ix-14left: 3.5rem;
ix-15left: 3.75rem;
ix-16left: 4rem;
ix-fullleft: 100%;
ix-halfleft: 50%;
A
<div class="p-r d-18 sm:d-32 tc-white">
<div class="p-a i-0 bo-1"></div>
<div class="p-a t-0 ix-0 d-f h-12 ai-c jc-c bg-indigo p-4">A</div>
</div>

Inset Y

Controls the placement of positioned elements in the vertical direction.

ClassStyle
iy-0top: 0rem;
iy-1top: 0.25rem;
iy-2top: 0.5rem;
iy-3top: 0.75rem;
iy-4top: 1rem;
iy-5top: 1.25rem;
iy-6top: 1.5rem;
iy-7top: 1.75rem;
iy-8top: 2rem;
iy-9top: 2.25rem;
iy-10top: 2.5rem;
iy-11top: 2.75rem;
iy-12top: 3rem;
iy-13top: 3.25rem;
iy-14top: 3.5rem;
iy-15top: 3.75rem;
iy-16top: 4rem;
iy-fulltop: 100%;
iy-halftop: 50%;
A
<div class="p-r d-18 sm:d-32 tc-white">
<div class="p-a i-0 bo-1"></div>
<div class="p-a iy-0 l-0 d-f w-12 ai-c jc-c bg-indigo p-4">A</div>
</div>

Using utility variants

Learn how to override existing utilities based on the user's screen size or other factors, such as hover states.

Targeting different viewports

You can combine responsive breakpoints like sm:l-*, md:l-*, lg:l-*, and xxl:l-* to allow targeting specific utilities in different viewports.

Targeting hover states

Alternatively, you can apply :hover by using h:l-* utility to override elements and change their values when hovering over them.