Skip to main content

Bottom

Set the bottom placement of positioned elements.

View as Markdown
baselinewidely

Variants

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

Breakpoints

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

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

States

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

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

Pseudo Elements

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

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

Negative

Put a minus after the colon to negate a value.

b:-4A minus after the colon.