property
Text box trim — CSS reference
Enables trimming at both block edges of the text container using the chosen text-box-edge metrics. It does not change all inter-line spacing or guarantee that every glyph fits inside the trimmed box.
Formal Syntax & Structure
css syntaxcss
text-box-trim: trim-both;Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>text-box-trim</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:trim-both}</style><body><p id="a">CSS</p><p id="b">CSS</p></body></html>