Jump to content

Hyperlink underline customization

Recommended Posts

  • Replies 12
  • Views 1.3k
  • Created
  • Last Reply

Top Posters In This Topic

Add to Home > Design > Custom CSS

.black-bold .sqs-block-html a, .black-bold .image-title-wrapper a, .black-bold .image-subtitle-wrapper a, .black-bold .sqs-image-caption a, .black-bold .sqs-block-newsletter a {
    background-image: none !important;
    border-bottom: 1px dotted white;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 1 year later...

Hi there, 

 

Following on from this, I've added middle underline hover effect to navigation on site in 7.1 - trying to do the same for hyperlinks within the site for consistent look and feel. This is the css code for the middle navigation line used (https://www.ghostplugins.com/steps/8gk3nf7j). Any help for code to add same effect to hyperlinks would be appreciated.

Thanks.

 

Edited by MarcUK1603
Updated link
Link to comment
19 hours ago, MarcUK1603 said:

Hi there, 

 

Following on from this, I've added middle underline hover effect to navigation on site in 7.1 - trying to do the same for hyperlinks within the site for consistent look and feel. This is the css code for the middle navigation line used (https://www.ghostplugins.com/steps/8gk3nf7j). Any help for code to add same effect to hyperlinks would be appreciated.

Thanks.

 

Hi. Can you share your site url? We can check easier

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
On 6/11/2021 at 6:59 PM, MarcUK1603 said:

Hi there, 

 

Following on from this, I've added middle underline hover effect to navigation on site in 7.1 - trying to do the same for hyperlinks within the site for consistent look and feel. This is the css code for the middle navigation line used (https://www.ghostplugins.com/steps/8gk3nf7j). Any help for code to add same effect to hyperlinks would be appreciated.

Thanks.

 

apply effect on Page Content Links/Footer links?

Some links in page content have underline. How about them? Remove underline & add hover effect?

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

So... I've kind of figured it out. I've added the CSS code below which has added the animation, but it's overlaying on top of default hyperlink underline. How can I remove the default that's still appearing and make this new code only what is read? I've added '!important' but it's not done the trick. Help... ! 🙂

// Fade Out Line Sub Nav - Middle Stretch Out //
h4 a{
  display: inline-block;
  float: none!important; 
}

h4 a:hover:after{
  transform: scaleX(1)!important;
}

h4 a:after {
  display:block;
  content: '';
  border-bottom: solid 2px #000000!important; 
} 
h4 a:after {
  transform: scaleX(0);  
  transition: transform 250ms ease-in-out;
  z-index: 999!important;
 }

Link to comment
  • 4 months later...

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.