Stop words from braking halfway

How to stop words from braking ? so when it needs space whole word just goes on a new line. For example, its T-Shirt on a new line and not T- Shirt. i tried using word-break keep-all, it doesnt work
No description
2 Replies
snxxwyy
snxxwyy16mo ago
Try using min-width: max-content; on the tag.
vince
vince16mo ago
It might be breaking because it's a hypen. Try wrapping "T-Shirt" in a span
Want results from more Discord servers?
Add your server