Introduction
CSS Classes
React Components
Cssville has 48 utility classes for gap. Add one to an element's class attribute to set the property, for example gap-4. Put a breakpoint name in front of a class to apply it only on screens up to that width, as in md-gap-4. Add -hover to the end to apply a class only on hover, as in gap-4-hover. Getting started explains how class names are built.
| Class name prefix | CSS properties |
|---|---|
| gap-* | gap |
| col-gap-* | column-gap |
| row-gap-* | row-gap |
| Class name suffix | CSS properties value |
|---|---|
| *-0 | 0px |
| *-1 | 1px |
| *-2 | 2px |
| *-3 | 4px |
| *-4 | 8px |
| *-5 | 12px |
| *-6 | 16px |
| *-7 | 24px |
| *-8 | 32px |
| *-9 | 40px |
| *-10 | 48px |
| *-11 | 64px |
| *-12 | 80px |
| *-13 | 96px |
| *-14 | 112px |
| *-inherit | inherit |
.gap-0 {
gap: 0px;
}
.col-gap-0 {
column-gap: 0px;
}
.row-gap-0 {
row-gap: 0px;
}