New CSS text-box Property Is A Game Changer
This title could be clearer and more informative.Try out Clickbait Shieldfor free (5 uses left this month).
CSS has a new `text-box` property (shorthand for `text-box-trim` and `text-box-edge`) that removes the extra whitespace above and below text characters. The `text-box-trim` value controls which sides to trim (top, bottom, or both), while `text-box-edge` specifies the trim alignment using values like `cap` (capital letter height), `x` (x-height), or `alphabetic` (baseline without descenders). Both sub-properties must be set together for the feature to work, making the shorthand `text-box` the practical way to use it.
•2m watch time
1 Comment
Sort: