Most people have no idea you can style underlines like this

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

Sign in to save videos and track what you’ve finished.

IntermediateUIWeb Design10 min

About this video

A CSS tutorial on styling link underlines with text-decoration properties, covering thickness, color, style, skip-ink, offset and the shorthand. It suits web developers and designers who want finer control over underlines than borders or pseudo-elements allow.

What you’ll learn

  • Set underline thickness, color and style with text-decoration properties
  • Control underline distance using text-underline-offset
  • Write the text-decoration shorthand to combine underline settings