Jump to content

Trying to change hover color (or opacity) in my header button

Recommended Posts

Site URL: https://www.alexengelsfitness.com/

Hi, 

I'm trying to get the red button in my header to change to a slightly lighter shade of red when I hover over it. But the default hover effect keeps taking over - it transitions from solid to outine. Any ideas?

I tried the following to no avail:

.header-actions .btn
{
    padding: 10px 28px;
    font-size: 20px;
  font-weight: 550;
  letter-spacing: .125em;
  color: white!important;
  background: #A31F34 !important;
opacity: 1 !important;

}
.btn:hover{
  background: red !important
}

 

Password: speakfriend

Thank you!

Alex

 

Edited by Alex873
password
Link to comment
  • Alex873 changed the title to Trying to change hover color (or opacity) in my header button
  • Replies 6
  • Views 1.2k
  • Created
  • Last Reply

Top Posters In This Topic

On 1/17/2022 at 9:33 PM, Alex873 said:

Yes it's the "Reserve a Session" button in the top right corner -- I got rid of the red for now

Add this CSS

/* header button hover */
header#header a.btn:before {
    background-color: red !important;
}
header#header a.btn:hover {
    color: white !important;
}

 

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

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.