Jump to content

Banner button different color on hover

Recommended Posts

Site URL: https://www.boekjevankarton.nl

Hi,

On my home page I have a button on my banner. It is a large pill shaped button, in the outline form with white text and lines, and on hover it becomes solid white with black text. I would like it to turn solid green with white text on hover. Does anyone know how to do that? I have tried custom css on the web but it does not seem to work!

Green background: #BCD9A1
White text: #FFFFFF

 

Thank you very much!

Edited by RoelJ
Link to comment

Add to Design > Custom CSS

/* banner button hover */
div#block-yui_3_17_2_1_1594843544680_4793 a:hover {
    background: #BCD9A1;
    border-color: #BCD9A1;
    color: white;
}

 

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 2/18/2021 at 3:30 PM, tuanphan said:

Add to Design > Custom CSS


/* banner button hover */
div#block-yui_3_17_2_1_1594843544680_4793 a:hover {
    background: #BCD9A1;
    border-color: #BCD9A1;
    color: white;
}

 

This works beautifully, thank you so much! I have noticed you answer a lot of questions on the forums, you do amazing work!!

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.