Introduction
CSS Classes
React Components
Cssville has 30 utility classes for border. Add one to an element's class attribute to set the property, for example bor-4. Put a breakpoint name in front of a class to apply it only on screens up to that width, as in md-bor-4. Add -hover to the end to apply a class only on hover, as in bor-4-hover. Getting started explains how class names are built.
| Class name prefix | CSS properties |
|---|---|
| bor-* | border |
| bor-top-* | border-top |
| bor-bot-* | border-bottom |
| bor-lef-* | border-left |
| bor-rig-* | border-right |
| Class name suffix | CSS properties value |
|---|---|
| *-0 | 0px solid var(--cssville-color-border) |
| *-1 | 1px solid var(--cssville-color-border) |
| *-2 | 2px solid var(--cssville-color-border) |
| *-3 | 4px solid var(--cssville-color-border) |
| *-4 | 8px solid var(--cssville-color-border) |
| *-none | none |
.bor-0 {
border: 0px solid var(--cssville-color-border);
}
.bor-top-0 {
border-top: 0px solid var(--cssville-color-border);
}
.bor-bot-0 {
border-bottom: 0px solid var(--cssville-color-border);
}
.bor-lef-0 {
border-left: 0px solid var(--cssville-color-border);
}
.bor-rig-0 {
border-right: 0px solid var(--cssville-color-border);
}