unit
ch — CSS reference
One ch corresponds to the inline advance of the zero glyph in its rendering font. A measure of 60ch is not a guarantee of 60 characters in proportional text. Glyph orientation and font selection matter; fallback is generally half an em, or one em for upright vertical text. Font-relative lengths can resolve differently in font-size or line-height itself to avoid self-dependence; consult the property-specific rules.
Formal Syntax & Structure
css syntaxcss
width: 4ch;Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>Relative length lab</title><style>body {margin:0} .sample {height:12px;background:#006050}html {font:20px/28px monospace} #a {font:20px/28px monospace;width:4ch} #b {font:40px/56px monospace;width:4ch}</style><body><div id="a" class="sample"></div><div id="b" class="sample"></div></body></html>