Jump to content

Is it possible to make gradient button border?

Recommended Posts

Hello guys,

I am very new with using CSS Custom here. I have seen alot of tutorial for making a button gradient. However, I wish to make the button's border also gradient.

I am attaching you my button design. Please let me know how if it possible. Or if there is anyway to replace the button with my own button design?

Looking forward to hearing from you and thank you in advance,


Screenshot 2020-01-25 at 10.30.34 PM.png

Edited by Chira
Link to comment
On 1/29/2020 at 3:44 AM, christyprice said:

You could use this code when targeting your specific button class in Custom CSS - just change out the colors: https://codepen.io/miraviolet/pen/ZobWEg



I took a little sometime to figure out how to apply your code to my website element. But it works! 

It turns out wonderful! I am so happy! 🤩🤩❤️ Thank you so much for your help! Without your help, I wouldn't see my design becomes realized.🙏


.medium-button-style-outline .sqs-alternate-block-style-container .sqs-block-button .sqs-block-button-element--medium{
  border-radius: 100rem;
  padding: 1rem;
  font-family: 'Helvetica';
  letter-spacing: 0.47px;
  font-weight: bold;
  font-size: 1rem;
  padding: 1rem 3rem;
  color: #f1315a;
  box-shadow: 0 0 6px 0 rgba(157, 96, 212, 0.5);
  border: solid 3px transparent;
  background-image: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0)), linear-gradient(101deg, #ffefce, #f1315a, #56a9cc);
  background-origin: border-box;
  background-clip: content-box, border-box;
  box-shadow: 2px 1000px 1px #fff inset;

.medium-button-style-outline .sqs-alternate-block-style-container .sqs-block-button .sqs-block-button-element--medium:hover {
  box-shadow: none;
  color: white;


This is my result from your code

Screenshot 2020-01-31 at 2.20.49 PM.png

Edited by Chira
Link to comment
  • 1 year later...
On 5/27/2021 at 1:37 AM, EbonyW said:

Hello! Any insight on how to use this code to get the same type of button (gradient color) but rounded style instead of pill? Thanks!



Can you share link to your site? We can check easier

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

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.