Stop Fixing Headline Gaps With Negative Margins. Use `text-box-trim`
DEV Community·11 points·parsajiravand·about 11 hours ago·dev.to
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.
Read the full article at dev.to →
Related stories
- Hacker News · 1 points · 9 days ago
- Lobsters · 8 points · about 23 hours ago
- Hacker News · 1 points · 11 days ago
- Show HN: Text alerts when Codex resets are announcedresetalerts.comHacker News · 3 points · 3 days ago
- Show HN: Morse Code Translator – real-time text-to-Morse with audiomorsetranslator.meHacker News · 2 points · 12 days ago
- Hacker News · 1 points · 9 days ago