Jump to content

CSS- format hyperlink with different color underline + heavier weight SS 7.1

Recommended Posts

a {
    text-decoration: color: #A9450C !important;
    border-bottom: color: #A9450C !important;
}

I have tried this code to make the underline on hyperlinks a different color. I would like them to look like this. 

image.png.bb7cd3304c642a14e54b7db2bfd0e083.png

To do this, I need to change the color of the underline and increase the weight of the underline. What code will allow me to do to this?

Additionally- would love to format the button in the header section to also look like this. Remove the box and add the underline. Also make the text in the header smaller. 

Currently looks like this: 

image.thumb.png.acbec0423e2a015c02421fa12f9a50f2.png

would like ti to look like this:

image.thumb.png.24b051d926187cdabe1f602d2efff408.png

image.png

Link to comment

Fundamentally you want this:

#blockid a { 
  text-decoration: none;
    border-bottom: 3px solid yourcolour;
  }

You can see a quick example walking through some application below and getting more specific but that should cover you.

You had the right idea just didn't execute it quite right.

Demonstration Video.

Live example.

Edited by Kwamzilla

Work With Me 🖥️💻📱

Please remember to tag me so that I get a notification and respond to your help requests.

If my answers have helped you, please drop a like and mark my answer as best to help other users find solutions quickly.

You can also thank me or make requests by buying me a coffee . (Caffeine fuels me to take more requests)

For Squarespace Tips & Tricks, visit @squareskills (Youtube 📺 Tutorials)

For Premium and FREE plugins, visit Squareskills (Plugin Store) 🧩

Some links may be affiliate/referral links.

Link to comment

Hi @lmsully

You can use the Inspect function on your browser or, if you're on Chrome, you can use this plugin.

If you are targeting the correct element, it won't affect your footer.

P.s. If my answer has helped you, please mark it as the best answer so it's useful for others. Thanks.

Work With Me 🖥️💻📱

Please remember to tag me so that I get a notification and respond to your help requests.

If my answers have helped you, please drop a like and mark my answer as best to help other users find solutions quickly.

You can also thank me or make requests by buying me a coffee . (Caffeine fuels me to take more requests)

For Squarespace Tips & Tricks, visit @squareskills (Youtube 📺 Tutorials)

For Premium and FREE plugins, visit Squareskills (Plugin Store) 🧩

Some links may be affiliate/referral links.

Link to comment
  • 4 months later...
On 6/14/2021 at 8:32 PM, lmsully said:

How do you see the class of each item on your site? Is that a plugin?

Right click and inspect.

You'll see something like this:

image.thumb.png.b5bebbda3c164f18058b2cdfb4d77317.png

The bit I've highlighted (class="ipsComment_author....") is the list of classes that an element has.

Work With Me 🖥️💻📱

Please remember to tag me so that I get a notification and respond to your help requests.

If my answers have helped you, please drop a like and mark my answer as best to help other users find solutions quickly.

You can also thank me or make requests by buying me a coffee . (Caffeine fuels me to take more requests)

For Squarespace Tips & Tricks, visit @squareskills (Youtube 📺 Tutorials)

For Premium and FREE plugins, visit Squareskills (Plugin Store) 🧩

Some links may be affiliate/referral links.

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.