Jump to content

overriding template css

Go to solution Solved by tuanphan,

Recommended Posts

I am trying to make all text links underlined. In the template, links are only underlined over hover. I went into custom CSS and added the following code:

 

a:link {
   text-decoration: underline;
}

It didn't work and I'm wondering if I need to add code that overrides the template hover request.

 

Thanks for the help.

Link to comment
  • Replies 3
  • Views 1.5k
  • Created
  • Last Reply

Top Posters In This Topic

  • 2 weeks later...

That worked great I was able to customize the thickness and offset by adding the following code:

a {
   text-decoration: underline 2px     !important;
}

a {
  text-underline-offset: 3px;
}

Any way to have this code and remove it from the navigation bar? I like it on body/paragraph/heading text but not in the navigation.

Screenshot 2023-11-28 at 10.57.54 AM.png

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.