Table layout
By default, tables in Vanilla use table-layout: fixed
.
There are cases where you might want to use table-layout: auto
- e.g. in automatically generated tables. To do this, you need to set the $table-layout-fixed
variable to true
.
Depending on the value of $table-layout-fixed
, a utility class is generated to allow overriding if necessary:
- If
$table-layout-fixed
is set totrue
(the default), you can useu-table-layout--auto
to override it. - if
$table-layout-fixed
is set toauto
it adds a utility calledu-table-layout--fixed
.