Table Layout

Set the table cell layout algorithm.

Widely available

This feature is well established and works across many devices and browser versions.

Chrome
Edge
Firefox
Safari

Usage

Auto

Allow the browser to determine column widths based on content.

Full NamePhone Number
John Doe+1 (555) 123-4567
<table class="bw-1 bs-d bc-c c-slate tl-auto w-full">
<thead>
<tr>
<th class="bw-1 bs-d bg-silver-2 bc-slate p-3 ta-c">Full Name</th>
<th class="bw-1 bs-d bg-silver-2 bc-slate p-3 ta-c">Phone Number</th>
</tr>
</thead>
<tbody>
<tr>
<td class="bw-1 bs-d bc-slate p-3 ta-c">John Doe</td>
<td class="bw-1 bs-d bc-slate p-3 ta-c">+1 (555) 123-4567</td>
</tr>
</tbody>
</table>

Fixed

Set column widths based on the table width and first row.

Full NamePhone Number
John Doe+1 (555) 123-4567
<table class="bw-1 bs-d bc-c c-slate tl-f w-full">
<thead>
<tr>
<th class="bw-1 bs-d bg-silver-2 bc-slate p-3 ta-c">Full Name</th>
<th class="bw-1 bs-d bg-silver-2 bc-slate p-3 ta-c">Phone Number</th>
</tr>
</thead>
<tbody>
<tr>
<td class="bw-1 bs-d bc-slate p-3 ta-c">John Doe</td>
<td class="bw-1 bs-d bc-slate p-3 ta-c">+1 (555) 123-4567</td>
</tr>
</tbody>
</table>

Responsive Design

Use breakpoint prefixes to target different screen sizes. Styles apply from the breakpoint & up.

Target viewport sizes with breakpoint prefixes.

sm:tl-[value]
Small≥640px
md:tl-[value]
Medium≥768px
lg:tl-[value]
Large≥1024px
xxl:tl-[value]
Extra Large≥1536px

Hover State

Apply styles conditionally on hover using the h: prefix.

Add the h: prefix to apply styles only when the user hovers over the element.

Syntax:h:tl-[value]