Skip to main content

Border Spacing

Set the distance between table borders.

View as Markdown
baselinewidely
ClassCSS
bs:0border-spacing: 0;
bs:1border-spacing: .25rem;
bs:2border-spacing: .5rem;
bs:3border-spacing: .75rem;
bs:4border-spacing: 1rem;
bs:5border-spacing: 1.25rem;
bs:6border-spacing: 1.5rem;
bs:7border-spacing: 1.75rem;
bs:8border-spacing: 2rem;
bs:pxborder-spacing: 1px;

Variants

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

Breakpoints

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

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

States

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

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

Pseudo Elements

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

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