Skip to main content

Text Indent

Set the indentation of the first line of text.

View as Markdown
baselinewidely
ClassCSS
ti:0text-indent: 0;
ti:1text-indent: 1px;
ti:2text-indent: .25rem;
ti:3text-indent: .5rem;
ti:4text-indent: .75rem;

Variants

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

Breakpoints

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

@xs:ti:4From 32rem up.
@sm:ti:4From 40rem up.
@md:ti:4From 48rem up.
@lg:ti:4From 64rem up.
@xl:ti:4From 80rem up.
@xxl:ti: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:ti:4Container from 32rem up.
@c:sm:ti:4Container from 40rem up.
@c:md:ti:4Container from 48rem up.
@c:lg:ti:4Container from 64rem up.
@c:xl:ti:4Container from 80rem up.
@c:xxl:ti: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:ti:4On a touch screen.
@prm:ti:4With reduced motion on.
@st:ti:4On the first frame.

States

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

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

Pseudo Elements

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

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

Negative

Put a minus after the colon to negate a value.

ti:-4A minus after the colon.