Underlining a link doesn't involve a border-bottom
anymore, as I discovered on CSS Tricks:
a {
text-decoration-color: #f60;
text-decoration-thickness: 1px;
text-decoration-skip-ink: auto; /* default */
text-underline-offset: 1.5px;
}
Very handy and way more flexible!
Top comments (4)
It seems
text-decoration-thickness
is not yet animateable in chromium withtransition
😭I have to correct myself: CSS Houdini makes this possible ✨🧙✨:
What's the support like?
It's quite OK, but of course that depends on the browsers you have to support, for example: caniuse.com/?search=text-decoratio...
as always can't be used with ie11