Jump to content

How to I change the colour of underline site-wide?

Recommended Posts

Site URL: https://beagle-tangerine-ex9m.squarespace.com/

Hi All,

I wondered whether anyone could tell me how I can change the colour of the underline style site wide.

I currently have H2 set to a custom underline but i'd like to make this style specific to when I use underline in markdown blocks <u>text</u> because when I use H2 it adjusts all the text on one line to being underlined and I would like to apply this underline style to specific words in text.

This is the current CSS:

h2 { 
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-color: #3effb1;
  text-decoration-thickness: 20px;
}

I've tried this code but nothing happened: 

.underline {
text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-color: #3effb1;
  text-decoration-thickness: 20px;
}

 

I'm new to coding so I have very little idea of what I'm doing haha. Any suggestions would be greatly appreciated!

Below attached image shows what underlining currently does (has same colour as font) and above is an example of H2 with the desired colour I hope to achieve.

Thanks,

Sarah

 

Screenshot 2020-11-13 at 08.48.52.png

Link to comment
  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

HI Sarah,

Your site is private, please provide a password so we can check

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Lightbox Studio plugin
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment
Just now, sarahgilchrist said:

I'm afraid it's not Live yet, is this an issue?

You can set a temporary site wide pasword in Permission section

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Lightbox Studio plugin
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment
  • 4 weeks later...
4 hours ago, sarahgilchrist said:

the password is: digitalnative

You already change the underline color, what wrong?

image.thumb.png.cf6f89c4c13dc6a1b486cbbe11a956a6.png

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Lightbox Studio plugin
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

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.