Jump to content

Outline buttons border colour - CSS

Recommended Posts

Site URL: https://alligator-lavender-bss4.squarespace.com/studio-1

Hi, 

I am trying to change the borders of all outline CTA buttons to red. However, when adding the code to CSS it only displays when editing the code but not on the live site. Can you please help?

 

Here is the code I used: 

.primary-button-style-outline .bright-inverse .sqs-block-button-element--small, .primary-button-style-outline .bright-inverse .sqs-block-button-element--medium, .primary-button-style-outline .bright-inverse .sqs-block-button-element--large, .primary-button-style-outline .bright-inverse .header-actions .btn {
    color: #1647b1;
    border-color: #D50917;
    background: transparent;
}

Screenshot 2020-04-27 at 15.23.17.png

Link to comment
  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

.sqs-block-button-element--small {
   color: #1647b1;
   border: 2px solid #D50917;
   background: transparent;
}
 
Place code in Design> CSS 
 
If you are using a medium button then change the word 'small' in the first code line above to 'medium'. You can also adjust the border px width to 1px etc in the code. 
 
- John 
Edited by JOHNMD

mcgouran.john@gmail.com

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.