Jump to content

Change one instance of button hover color

Go to solution Solved by tuanphan,

Recommended Posts

Hi!

I inserted this code for my buttons however I want to use something different when the button is on a background-color of #222. In that instance, I want that button to have a white border. How can I do that? Thanks in advance!

 

https://coral-elk-m3e7.squarespace.com/

password: yoga

/* Buttons hover */
.sqs-block-button-element:hover {
  background-color:#222 !important;
color:#fff !important;
 opacity: 1 !important;
}

Link to comment
  • Replies 2
  • Views 1.2k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • Solution

Change your code to this

/* Buttons hover */
.sqs-block-button-element:hover {
  background-color:#222 !important;
color:#fff !important;
 opacity: 1 !important;
border: 2px solid 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.