Browse documentation
Reference / Layout
Visibility
Control whether a box is painted while keeping its reserved space in the layout.
Working example
Cover
Insert
Index
The invisible middle label still occupies the second track. The collapse value also has special behavior on table rows and columns.
<div class="grid grid-cols-3 gap-2 text-center">
<span class="border p-2">Cover</span>
<span class="invisible border p-2">Insert</span>
<span class="border p-2">Index</span>
</div>Class reference
| Class | CSS declarations |
|---|---|
visible | visibility: visible; |
invisible | visibility: hidden; |
collapse | visibility: collapse; |
View full generated CSS
.collapse {
visibility: collapse;
}
.invisible {
visibility: hidden;
}
.visible {
visibility: visible;
}