Any thoughts on a pure CSS solution color behind letters?
A deviously simple-looking challenge. Just a block of text with a background color. That only goes behind the text. 🙂
Obviously not looking for a hard-coded clip path or something, but a general solution.
6 Replies
Placing the text inside an inline element such as a span with a background color should be enough.
The trick is padding.
You can try using
didn't know about that one. nice
ahh, perfect opportunity: If you like
box-decoration-break
and would like it unprefixed and consistent across browsers feel free to give my Interop2024 proposal for it a thumbs up: https://github.com/web-platform-tests/interop/issues/486Exactly the sort of obscure property I was looking for! 😸 I tried stacked shadows but they got real funky.