Loading...

width

Cssville has 141 utility classes for width. Add one to an element's class attribute to set the property, for example wid-4. Put a breakpoint name in front of a class to apply it only on screens up to that width, as in md-wid-4. Add -hover to the end to apply a class only on hover, as in wid-4-hover. Getting started explains how class names are built.

CSS class prefixes and related properties

Class name prefixCSS properties
wid-*width
max-wid-*max-width
min-wid-*min-width

CSS class suffixes and property values

Class name suffixCSS properties value
*-1/128.333%
*-2/1216.666%
*-1/616.666%
*-3/1225%
*-1/425%
*-4/1233.333%
*-1/333.333%
*-5/1241.666%
*-6/1250%
*-1/250%
*-7/1258.333%
*-8/1266.666%
*-2/366.666%
*-9/1275%
*-3/475%
*-10/1283.333%
*-5/683.333%
*-11/1291.666%
*-100100%
*-full100%

wid: width

.wid-1\/12.wid-1\/12-hover.wid-2\/12.wid-2\/12-hover.wid-1\/6.wid-1\/6-hover.wid-3\/12.wid-3\/12-hover.wid-1\/4.wid-1\/4-hover.wid-4\/12.wid-4\/12-hover.wid-1\/3.wid-1\/3-hover.wid-5\/12.wid-5\/12-hover.wid-6\/12.wid-6\/12-hover.wid-1\/2.wid-1\/2-hover
.wid-1\/12 {
  width: 8.333%;
}

max-wid: max-width

.max-wid-1\/12.max-wid-1\/12-hover.max-wid-2\/12.max-wid-2\/12-hover.max-wid-1\/6.max-wid-1\/6-hover.max-wid-3\/12.max-wid-3\/12-hover.max-wid-1\/4.max-wid-1\/4-hover.max-wid-4\/12.max-wid-4\/12-hover.max-wid-1\/3.max-wid-1\/3-hover.max-wid-5\/12.max-wid-5\/12-hover.max-wid-6\/12.max-wid-6\/12-hover.max-wid-1\/2.max-wid-1\/2-hover
.max-wid-1\/12 {
  max-width: 8.333%;
}

min-wid: min-width

.min-wid-1\/12.min-wid-1\/12-hover.min-wid-2\/12.min-wid-2\/12-hover.min-wid-1\/6.min-wid-1\/6-hover.min-wid-3\/12.min-wid-3\/12-hover.min-wid-1\/4.min-wid-1\/4-hover.min-wid-4\/12.min-wid-4\/12-hover.min-wid-1\/3.min-wid-1\/3-hover.min-wid-5\/12.min-wid-5\/12-hover.min-wid-6\/12.min-wid-6\/12-hover.min-wid-1\/2.min-wid-1\/2-hover
.min-wid-1\/12 {
  min-width: 8.333%;
}
© Cssville 2026
Hosted by Vercel.Protected by Cloudback.