property
Text box — CSS reference
Shorthand that sets text-box-trim and text-box-edge together. It can remove extra leading at the outer edges of a text block; different fonts produce different measured heights.
Formal Syntax & Structure
css syntaxcss
text-box: trim-both cap alphabetic;Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>text-box</title><style>body{margin:8px;font:16px/24px sans-serif}#a,#b{font:32px/64px Arial;margin:0}#a{text-box-trim:trim-both;text-box-edge:cap alphabetic;text-box:trim-both cap alphabetic}</style><body><p id="a">CSS</p><p id="b">CSS</p></body></html>