--- name: layout-tables description: Table layout and border behavior with border-collapse, table-layout --- # Table Layout Utilities for controlling table display, border behavior, and layout algorithm. ## Usage ### Border collapse ```html
State City
Indiana Indianapolis
...
``` ### Table layout ```html ...
...
``` ### Table display (from layout-display) Combine with `table`, `table-row`, `table-cell`, `table-header-group`, etc. for semantic table structure. ### Responsive ```html ...
``` ## Key Points - `border-collapse` - adjacent borders merge (single border between cells) - `border-separate` - each cell displays its own borders - `table-auto` - column widths from content - `table-fixed` - fixed layout; first row sets column widths - In v4, `border-*` and `divide-*` default to `currentColor`; specify a color (e.g. `border-gray-200`) explicitly