Skip to main content

Border Collapse

Set the collapsing behavior for table borders.

View as Markdown
baselinewidely
ClassCSS
bc:cborder-collapse: collapse;
bc:sborder-collapse: separate;

Variants

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

Breakpoints

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

@xs:bc:sFrom 32rem up.
@sm:bc:sFrom 40rem up.
@md:bc:sFrom 48rem up.
@lg:bc:sFrom 64rem up.
@xl:bc:sFrom 80rem up.
@xxl:bc:sFrom 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:bc:sContainer from 32rem up.
@c:sm:bc:sContainer from 40rem up.
@c:md:bc:sContainer from 48rem up.
@c:lg:bc:sContainer from 64rem up.
@c:xl:bc:sContainer from 80rem up.
@c:xxl:bc:sContainer 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:bc:sOn a touch screen.
@prm:bc:sWith reduced motion on.
@st:bc:sOn the first frame.

States

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

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

Pseudo Elements

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

a::bc:sOn ::after.
b::bc:sOn ::before.
p::bc:sOn ::placeholder.
s::bc:sOn ::selection.