Skip to content

caption-side

Utilities for placing a table’s caption block above or below the table rows.

ISS preview
Iced + ISS preview demonstrating caption-side
ISS preview for caption-side
use iss::{table_with_caption_tw, table_caption_tw, text_tw, tw};
let tbl = table_with_caption_tw(
table_caption_tw(text_tw("Table 1: Budgets", tw!("text-xs text-zinc-400")), tw!("caption-bottom pt-2")),
rows,
tw!("w-full table-fixed border-collapse"),
);
Tailwind Class CSS Property / Effect iss::typed Builder
caption-top caption-side: top; .caption_top()
caption-bottom caption-side: bottom; .caption_bottom()
  • Use with table_with_caption_tw(caption, rows, style) and table_caption_tw.

table-layout · border-collapse · border-spacing