Skip to content

border-spacing

Utilities for controlling horizontal and vertical gaps between cells in border-separate tables.

ISS preview
Iced + ISS preview demonstrating border-spacing
ISS preview for border-spacing
use iss::{table_tw, tw};
let tbl = table_tw(rows, tw!("w-full border-separate border-spacing-x-3 border-spacing-y-1"));
Tailwind Class CSS Property / Effect iss::typed Builder
border-spacing-<n> border-spacing: calc(var(--spacing) * <n>); .border_spacing(2)
border-spacing-x-<n> Horizontal cell spacing; .border_spacing_x(3)
border-spacing-y-<n> Vertical cell spacing; .border_spacing_y(1)
border-spacing-[6px] border-spacing: 6px; .border_spacing_px(6)
  • Only applies when border-separate is active on table_tw.

border-collapse · table-layout · gap