Skip to content

Caption Side

Control table caption position

Syntax

layout="caption:[value]"

Values

ValueCSS OutputDescription
topcaption-side: topCaption on top
bottomcaption-side: bottomCaption on bottom

Examples

html
<caption layout="caption:bottom">Bottom caption</caption>

Preview

Caption Top

layout="caption:top" - Table caption at the top

Table Caption (Top)
DataData
View Code
html
<table style="width: 100%;">
  <caption layout="caption:top" space="p:small" visual="text:neutral-600 dark:text:neutral-400">Table Caption (Top)</caption>
  <tbody>
    <tr>
      <td space="p:small" visual="bg:primary text:white rounded:small">Data</td>
      <td space="p:small" visual="bg:primary text:white rounded:small">Data</td>
    </tr>
  </tbody>
</table>

Caption Bottom

layout="caption:bottom" - Table caption at the bottom

Table Caption (Bottom)
DataData
View Code
html
<table style="width: 100%;">
  <caption layout="caption:bottom" space="p:small" visual="text:neutral-600 dark:text:neutral-400">Table Caption (Bottom)</caption>
  <tbody>
    <tr>
      <td space="p:small" visual="bg:primary text:white rounded:small">Data</td>
      <td space="p:small" visual="bg:primary text:white rounded:small">Data</td>
    </tr>
  </tbody>
</table>