Class | Properties |
---|---|
.border-collapse | border-collapse: collapse; |
.border-separate | border-collapse: separate; |
Usage
Use .border-collapse
to combine adjacent cell borders into a single border when possible, including the borders on the top-level <table>
tag.
This behavior is applied by default as part of the theme’s base styles.
Use .border-separate
to force each cell to display its own separate borders.
Variants
By default, no responsive or hover-state variants are generated for border collapse utilities.
Responsive
To include responsive variants like .md:border-separate
, add "border-collapse
to the $responsive-variants
variable in your theme’s _variables.scss
file when recompiling your CSS:
$responsive-variants: (
// ...
"border-collapse",
);
Hover-state
To include hover-state variants like .hover:border-separate
, add "border-collapse"
to the $hover-variants
variable:
$hover-variants: (
// ...
"border-collapse",
);