How to Give Squarespace Buttons a Different Border Color with CSS

It’s easy to add a border to all your buttons in Squarespace in Site Styles (the little paintbrush in the upper right corner), but the problem is that it will always be the same color as the button text.

This tutorial explains how to use a DIFFERENT color for your button border than your button text, and it applies to all the buttons on your Squarespace website site-wide, primary, secondary, and tertiary, and to all shapes.

 

BEFORE ADDING CSS

Squarespace button before customizing the border with CSS

AFTER ADDING CSS

Squarespace button after customizing the border with CSS
 
 

How to Add a Different Color Border to Buttons in Squarespace

  1. Go to Website > Pages > Custom Code > Custom CSS

  2. Copy and paste the code below (scroll down) right here

  3. Adjust the hex code to match your brand in BOTH places (one for your pages, and one for navigation)

  4. Adjust the thickness to your liking in BOTH place, same as step 3

  5. Save!

That’s it!

 
 

Code Snippet

 
 
/* Add border to all buttons */

 .sqs-block-button-element {
            border: 2px solid #000 !important;
        }

.header-actions .btn {
            border: 2px solid #000 !important; 
        }
 
 
 

 
 

This page contains affiliate links

 
 

Like this post?

Pin It to Pinterest 👇

How to Give Squarespace Buttons a Different Border Color with CSS
Jennifer Barden

This article was written by Jennifer Barden, founder of Jen-X Website Design and Strategy.

Many Squarespacers feel defeated when their websites don’t attract and engage visitors.

In my blog, I share my secrets for effective Squarespace website design and strategy so that DIYers and Squarespace Website Designers can learn tips for building Squarespace websites that attract and engage the right visitors.

https://jenxwebdesign.com
Next
Next

Kit Email: My Favorite Tool for Growing Your Email List