Introduction
CSS Classes
React Components
Cssville has 2 utility classes for box-sizing. Add one to an element's class attribute to set the property, for example box-siz-content-box. Put a breakpoint name in front of a class to apply it only on screens up to that width, as in md-box-siz-content-box. Add -hover to the end to apply a class only on hover, as in box-siz-content-box-hover. Getting started explains how class names are built.
| Class name prefix | CSS properties |
|---|---|
| box-siz-* | box-sizing |
| Class name suffix | CSS properties value |
|---|---|
| *-content-box | content-box |
| *-border-box | border-box |
.box-siz-content-box {
box-sizing: content-box;
}