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
AFTER ADDING CSS
How to Add a Different Color Border to Buttons in Squarespace
Go to Website > Pages > Custom Code > Custom CSS
Copy and paste the code below (scroll down) right here
Adjust the hex code to match your brand in BOTH places (one for your pages, and one for navigation)
Adjust the thickness to your liking in BOTH place, same as step 3
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; }
If you liked this post, you’ll LOVE these:
This page contains affiliate links
Like this post?