How to add equal or full width buttons in Squarespace (7.0 & 7.1)

PIN TO SAVE FOR LATER

Buttons-Tutorial.png

The default buttons in the Squarespace drag and drop builder are sized in proportion to the text content in the button, resulting in mismatched buttons sizes throughout your site. To create consistency throughout, we recommend adding equal width buttons with the following quick and easy CSS snippets.

 

Default buttons:

Default buttons squarespace website
 

Buttons after CSS:

Screen Shot 2021-09-10 at 1.43.28 PM.png
 

NEXT STEPS:

01) Go to: Design > Custom CSS

02) Depending on which button size you’d like to target, copy and paste one (or all) of the following CSS snippets

 

To update small buttons site wide:

/* Small Buttons */ .sqs-block-button-element--small { width: 70% !important; }
 

To update medium buttons site wide:

/* Medium Buttons */ .sqs-block-button-element--medium { width: 70% !important; }
 

To update large buttons site wide:

/* Large Buttons */ .sqs-block-button-element--large { width: 70% !important; }
 

Notes:

Feel free to adjust the width of the buttons by changing the percentage in the code snippets above — we recommend anything between 60-80% for buttons that do not span the full width.

Alternatively, you can use pixel width to ensure all buttons are exactly the same size (for example 150px).

For full width buttons, update the percentage to 95-100%.

 

More tutorials

Previous
Previous

How to create a rotating hero banner with Squarespace Auto Layout (no code needed!)

Next
Next

How to add italic hover to your navigation & text links (hyperlinks) with CSS (Squarespace 7.0 & 7.1)