Loading...

box-sizing

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.

CSS class prefixes and related properties

Class name prefixCSS properties
box-siz-*box-sizing

CSS class suffixes and property values

Class name suffixCSS properties value
*-content-boxcontent-box
*-border-boxborder-box

box-siz: box-sizing

.box-siz-content-box.box-siz-content-box-hover.box-siz-border-box.box-siz-border-box-hover
.box-siz-content-box {
  box-sizing: content-box;
}
© Cssville 2026
Hosted by Vercel.Protected by Cloudback.