1. Tables
  2. caption-side

Tables

caption-side

Tools for setting where a caption element appears relative to the table it belongs to.

ClassStyles
caption-top
caption-side: top;
caption-bottom
caption-side: bottom;

Examples

Anchoring above the table

Reach for the caption-top utility when you want the caption to rest above your table:

Table 3.1: Arena champions and their trademark finishing moves.
WrestlerSignature Move(s)
"Steel" Vincent MarloweIron Piledriver, Reverse Suplex Drop
"The Cliff" Ronan FrostThe Sky Cyclone
Vic ThunderVic's Bolt, Comet Slam Drop
<table>  <caption class="caption-top">    Table 3.1: Arena champions and their trademark finishing moves.  </caption>  <thead>    <tr>      <th>Wrestler</th>      <th>Signature Move(s)</th>    </tr>  </thead>  <tbody>    <tr>      <td>"Steel" Vincent Marlowe</td>      <td>Iron Piledriver, Reverse Suplex Drop</td>    </tr>    <tr>      <td>"The Cliff" Ronan Frost</td>      <td>The Sky Cyclone</td>    </tr>    <tr>      <td>Vic Thunder</td>      <td>Vic's Bolt, Comet Slam Drop</td>    </tr>  </tbody></table>

Setting a caption at bottom

Apply the caption-bottom utility to drop a caption element to the bottom of a table:

Table 3.1: Star grapplers and their signature finishing moves.
GrapplerFinishing Move(s)
"Ironhide" Marcus SteeleIronhide Stunner, Steele Vice Press
Dane "The Cyclone" VoxThe Sky Cyclone
Vic ThunderVic's Bolt, Comet Slam Drop
<table>  <caption class="caption-bottom">    Table 3.1: Star grapplers and their signature finishing moves.  </caption>  <thead>    <tr>      <th>Grappler</th>      <th>Finishing Move(s)</th>    </tr>  </thead>  <tbody>    <tr>      <td>"Ironhide" Marcus Steele</td>      <td>Ironhide Stunner, Steele Vice Press</td>    </tr>    <tr>      <td>Dane "The Cyclone" Vox</td>      <td>The Sky Cyclone</td>    </tr>    <tr>      <td>Vic Thunder</td>      <td>Vic's Bolt, Comet Slam Drop</td>    </tr>  </tbody></table>

Adaptive layouts

Pair a caption-side utility with a breakpoint variant such as md: so it only takes effect from medium screen sizes and up:

<caption class="caption-top md:caption-bottom ...">  <!-- ... --></caption>

Dig deeper into working with variants in variant reference docs.

Copyright © 2026 Breezel, Inc.·Trademark Policy