Skip to content

border-collapse

Utilities for controlling whether adjacent table cell borders merge into shared seams or stay separate.

ISS preview
Iced + ISS preview demonstrating border-collapse
ISS preview for border-collapse
use iss::{table_tw, table_row_tw, table_cell_tw, tw};
let tbl = table_tw(
[table_row_tw([table_cell_tw(a, tw!("border border-zinc-700 p-2"))], tw!(""))],
tw!("w-full table-fixed border-collapse"),
);
Tailwind Class CSS Property / Effect iss::typed Builder
border-collapse border-collapse: collapse; .border_collapse()
border-separate border-collapse: separate; .border_separate()
  • Use with table_tw or table_with_caption_tw to share collapsed borders cleanly between adjacent cells.

border-spacing · table-layout · caption-side