Jump to content

Link hover color

Go to solution Solved by tuanphan,

Recommended Posts

I can't figure out why my h2 links won't change color when I hover over them. 😤 I inserted this code: 

h2 a:hover { 
  color: #F9CA92 !important;
}

Is it because I also used this code to remove the underline and it's overriding it? 

a {
text-decoration: none !important;
}

Link to comment

No idea why I can't get this code to apply to these links - Body Treatments, Morpheus8, etc... 

I have used this code, which works on other links but not these. ☹️

#page a:hover {
    color: #F9CA92!important; }

website: www.beautifulyoutanning.com

@tuanphan can you please help! 🙏

image.thumb.png.d1e7c7949e0143d45fb552c0036f0892.png

Edited by DesignPearl
Link to comment
  • Solution
On 10/17/2023 at 2:23 PM, DesignPearl said:

No idea why I can't get this code to apply to these links - Body Treatments, Morpheus8, etc... 

I have used this code, which works on other links but not these. ☹️

#page a:hover {
    color: #F9CA92!important; }

website: www.beautifulyoutanning.com

@tuanphan can you please help! 🙏

image.thumb.png.d1e7c7949e0143d45fb552c0036f0892.png

Use this code

#page a:hover, #page a:hover * {
    color: #F9CA92!important; 
}

 

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
On 10/17/2023 at 12:23 AM, DesignPearl said:

No idea why I can't get this code to apply to these links - Body Treatments, Morpheus8, etc... 

I have used this code, which works on other links but not these. ☹️

#page a:hover {
    color: #F9CA92!important; }

website: www.beautifulyoutanning.com

 

image.thumb.png.d1e7c7949e0143d45fb552c0036f0892.png

Thank you!! Curious, what does adding "#page" twice and a "*" do? 

Edited by DesignPearl
Link to comment
On 10/20/2023 at 4:33 AM, DesignPearl said:

Thank you!! Curious, what does adding "#page" twice and a "*" do? 

#page a target all links

#page a * target all links + all child element inside links (a) tag

 

Edited by tuanphan

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
On 10/27/2023 at 12:49 AM, DesignPearl said:

@tuanphan is there a way to make it so that my button text doesn't also change to this color? I want button text color to turn black (not orange) on hover. 

To exclude button, change to this

#page a:not([class*="button"]):hover,#page a:not([class*="button"]):hover * {
    color: #f9ca92 !important
}

 

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.