Right
Set 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 w-18 h-18 c-white sm:w-32 sm:h-32"> <div class="p-a i-0 b-1"></div> <div class="d-f p-a b-0 r-0 ai-c jc-c w-12 h-12 p-4 bg-indigo">A</div></div>Responsiveness
Use breakpoint prefixes to target different screen sizes. Styles apply from the breakpoint & up.
Target viewport sizes with breakpoint prefixes.
sm:r-*Small≥640px
md:r-*Medium≥768px
lg:r-*Large≥1024px
xxl:r-*Extra Large≥1536px
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-*Negative Values
Use negative variants to position in the opposite direction.
Use the -- syntax to apply negative numeric values.
Syntax:
r--*