Skip to content

Border Spacing

Control spacing between table borders

Syntax

layout="border-spacing:[value]"

Values

ValueCSS OutputDescription
border-spacingborder-spacing: {value}All spacing
border-spacing-xborder-spacing: {value} 0Horizontal spacing
border-spacing-yborder-spacing: 0 {value}Vertical spacing

Examples

html
<table layout="border-separate border-spacing:small">Spaced</table>

Preview

Border Spacing

layout="border-spacing:small" - Space between table cell borders

A1A2
B1B2
View Code
html
<table layout="border:separate" style="width: 100%; border-spacing: 8px;">
  <tbody>
    <tr>
      <td space="p:small" visual="bg:primary text:white rounded:small">A1</td>
      <td space="p:small" visual="bg:primary text:white rounded:small">A2</td>
    </tr>
    <tr>
      <td space="p:small" visual="bg:primary text:white rounded:small">B1</td>
      <td space="p:small" visual="bg:primary text:white rounded:small">B2</td>
    </tr>
  </tbody>
</table>

Arbitrary Values

Supports custom values using bracket syntax:

html
<div layout="border:[custom-value]">Custom</div>