How to center buttons on mobile with CSS (Squarespace 7.1)

How to center buttons on mobile with CSS (Squarespace 7.1)

Pin to save for later

 

Centering buttons on mobile devices is a simple yet powerful way to enhance the visual appeal and user experience of your Squarespace 7.1 website. Well-positioned buttons not only improve accessibility but also make your calls-to-action more prominent, encouraging visitors to take the next step.

To learn how to center text blocks on mobile only, check out this blog post!

 

Center buttons on mobile

From your Squarespace dashboard, go to:

  1. Pages > Scroll down to Website Tools > Custom CSS

  2. Copy & paste the CSS in the box below

  3. Save!

//CENTER BUTTONS ON MOBILE

@media screen and (max-width:767px) {
.button-block .sqs-block-button-container {
    justify-content: center;
    text-align: center;
    flex-direction: column;
}
}
 

Thanks for reading!

Did this tutorial help? Consider buying me a coffee as thanks! 🥰

Use discount code STYLEDSQUARE10 to save 10% off your Squarespace Subscription!

* Disclaimer: This post contains affiliate links. If you purchase through our links, we may earn a small commission at no extra cost to you. We only ever recommend tools we genuinely use and love.

 

More Squarespace tutorials

Previous
Previous

How to center text on mobile devices in Squarespace 7.1 using CSS

Next
Next

How to overlay blog post title & categories on blog thumbnail images with CSS (Squarespace 7.1)