NaviTech Logo
Guide

Stop Fixing Headline Gaps With Negative Margins. Use `text-box-trim`

Line-height reserves space for accent marks your headline never uses — a hand-tuned negative margin only fixes it for one font at one size. text-box-trim does, natively, from the font's own metrics.

October 2, 2026
5 min read
Parsa Jiravand
Share:
Stop Fixing Headline Gaps With Negative Margins. Use `text-box-trim`

This article was automatically curated. To read the full post by Parsa Jiravand, please visit the original link below.

Read Full Article on Dev.to ↗

Ready to Transform Your Business?

Let's build a digital roadmap that drives real results.

Talk to Our Experts