PositioningRight

Right

Control 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

Usage

<div class="p-r d-18 sm:d-32 c-white">
<div class="p-a i-0 b-1"></div>
<div class="p-a b-0 r-0 d-f d-12 ai-c jc-c bg-indigo p-4">A</div>
</div>

Responsive Design

Use breakpoint prefixes to target different screen sizes. Styles apply from the breakpoint & up.

Target viewport sizes with breakpoint prefixes.

sm:r-[value]
Small640px
md:r-[value]
Medium768px
lg:r-[value]
Large1024px
xxl:r-[value]
Extra Large1536px

Hover State

Apply styles conditionally on hover using the h: prefix.

Add the h: prefix to apply styles only when the user hovers over the element.

Syntax:h:r-[value]