Today I Learned

A Hashrocket project

Ready to join Hashrocket? Find Openings here and apply today.

CSS text decoration thickness

CSS has a property text-decoration-thickness which allow us to define the thickness of a text decoration such as underline to match design expectations.

Here’s is my regular link:

image

Then we apply the css change:

text-decoration-thickness: 2px;

And here’s the result with a thicker underlined link:

image