ch unit

noun

say it: “SEE-AYCH YOO-nit” /ˌsiːˈeɪtʃ ˈjuːnɪt/ or “KAIR-ik-ter YOO-nit” /ˈkærɪktər ˈjuːnɪt/

A CSS unit equal to the width of the zero character in the element's font, so 65ch is roughly 65 characters wide. It's handy for keeping lines of text a comfortable length.

What is the ch unit?

The ch unit (read "character") is the width of the zero character, 0, in the element's own font. It's handy for keeping lines of text a comfortable length: 65ch is about 65 characters wide.

.bike-story { max-width: 65ch; }   /* lines stop at about 65 characters */

In a sentence

  • “I set the bike shop story's max-width to 65ch with the ch unit, so each line holds about 65 characters.”

Level: Apprentice · More CSS terms at this level

Updated