Skip to main content

Text Underline Offset

Set the offset of a text underline.

View as Markdown
baselinewidely
ClassCSS
tuo:0text-underline-offset: 0;
tuo:1text-underline-offset: 1px;
tuo:2text-underline-offset: 2px;
tuo:4text-underline-offset: 4px;
tuo:8text-underline-offset: 8px;
tuo:autotext-underline-offset: auto;

Variants

Prefix any class with a variant to apply it only under that condition. Variants stack, as in @md:h:tuo:4.

Breakpoints

Apply a class from a viewport width up. Each breakpoint covers its width & every width above it.

@xs:tuo:4From 32rem up.
@sm:tuo:4From 40rem up.
@md:tuo:4From 48rem up.
@lg:tuo:4From 64rem up.
@xl:tuo:4From 80rem up.
@xxl:tuo:4From 96rem up.

Containers

Apply a class from a container's width up, not the viewport's. Mark the parent with ct:is first.

@c:xs:tuo:4Container from 32rem up.
@c:sm:tuo:4Container from 40rem up.
@c:md:tuo:4Container from 48rem up.
@c:lg:tuo:4Container from 64rem up.
@c:xl:tuo:4Container from 80rem up.
@c:xxl:tuo:4Container from 96rem up.

Media

Apply a class when the device or the page matches a condition, or on the first frame an element renders.

@pc:tuo:4On a touch screen.
@prm:tuo:4With reduced motion on.
@st:tuo:4On the first frame.

States

Apply a class only while the element is in a state, such as hovered, focused or checked.

h:tuo:4On :hover.
f:tuo:4On :focus.
fv:tuo:4On :focus-visible.
a:tuo:4On :active.
d:tuo:4On :disabled.
fc:tuo:4On :first-child.
c:tuo:4On :checked.
e:tuo:4On :empty.
fw:tuo:4On :focus-within.
i:tuo:4On :invalid.
in:tuo:4On :indeterminate.
lc:tuo:4On :last-child.
nc:tuo:4On :nth-child.
r:tuo:4On :required.
ro:tuo:4On :read-only.
v:tuo:4On :valid.

Pseudo Elements

Style a part of the element rather than the element itself, such as its placeholder or the selected text.

a::tuo:4On ::after.
b::tuo:4On ::before.
p::tuo:4On ::placeholder.
s::tuo:4On ::selection.

Negative

Put a minus after the colon to negate a value.

tuo:-4A minus after the colon.