Skip to main content

Table Layout

Set the table cell layout algorithm.

View as Markdown
baselinewidely
ClassCSS
tl:autotable-layout: auto;
tl:ftable-layout: fixed;

Variants

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

Breakpoints

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

@xs:tl:fFrom 32rem up.
@sm:tl:fFrom 40rem up.
@md:tl:fFrom 48rem up.
@lg:tl:fFrom 64rem up.
@xl:tl:fFrom 80rem up.
@xxl:tl:fFrom 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:tl:fContainer from 32rem up.
@c:sm:tl:fContainer from 40rem up.
@c:md:tl:fContainer from 48rem up.
@c:lg:tl:fContainer from 64rem up.
@c:xl:tl:fContainer from 80rem up.
@c:xxl:tl:fContainer 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:tl:fOn a touch screen.
@prm:tl:fWith reduced motion on.
@st:tl:fOn the first frame.

States

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

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

Pseudo Elements

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

a::tl:fOn ::after.
b::tl:fOn ::before.
p::tl:fOn ::placeholder.
s::tl:fOn ::selection.