CSS Secrets - CH Unit

whatjackhasmade on YouTubeWatch on YouTube

SaveMark complete

Sign in to save videos and track what you’ve finished.

IntermediateDesign Engineering6 min

About this video

Shows how to use the CSS ch unit to set a maximum width for text in characters, aiming for readable line lengths. It explains that ch is based on the width of the zero glyph and suggests setting the value about 10 less than the target character count.

What you’ll learn

  • Set a max-width in ch units to control line length
  • Target a readable 50 to 60 characters per line
  • Adjust ch values to account for the width of the zero glyph