Jump to content

Outline buttons border colour - CSS

Recommended Posts

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


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
  • Views 6k
  • Created
  • Last Reply
.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 


Link to comment


This topic is now archived and is closed to further replies.

  • 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.