Code

Custom text underline offset

Create a custom underline offset for your Webflow site using custom CSS. This is an easy way to add a unique style underline to your Webflow site designs, we recommend adding this to your global stylesheet.

Custom text underline offset preview

Create a custom underline offset for your Webflow site using custom CSS. This is an easy way to add a unique style underline to your Webflow site designs, we recommend adding this to your global stylesheet.

How to add it

  1. We recommend adding this to your global stylesheet
  2. Otherwise this can be added as an embed or to your Webflow's site code or individual page code in the header section.

The code

CSS
                      a {
	text-decoration-thickness: 0.1em;
	text-underline-offset: 0.1em;
}

                    

Browse similar code snippets

Categories

Language

More from Corey Moen

Profile →

Related Webflow questions

All answers →

Similar code snippets

All code snippets →