Search
Star
Feedback
Setup for Free
ยฉ 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Word overflows its own box with negative letter spacing - Kevin Powell - Community
KP-C
Kevin Powell - Community
โข
6mo ago
โข
10 replies
lko
Word overflows its own box with negative letter spacing
PEN
:
https://codepen.io/Lko3001/pen/jEWwKmQ
As you can see the last C of the word goes outside the outline
, why
?
It only happens with
letter-spacing
letter-spacing
, is there a way to make that box the right size
?
I know I could do
padding-right: (same number as the letter spacing)
padding-right: (same number as the letter spacing)
but I want to find a more clever way
CodePen
Lko
Untitled
.
.
.
Kevin Powell - Community
Join
A friendly place for developers to meet other devs, ask questions, get help, and just have a good time ๐.
36,263
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
How to maintain letter spacing when breaking a text element?
KP-C
Kevin Powell - Community / help
9mo ago
Grid vertical spacing
KP-C
Kevin Powell - Community / help
4mo ago
Slightly odd text spacing
KP-C
Kevin Powell - Community / help
4mo ago
Making a box with cut corners
KP-C
Kevin Powell - Community / help
3mo ago