Jump to content

Resizing Large Button on Mobile view (normal CSS code not working)

Go to solution Solved by Ziggy,

Recommended Posts

Hey everyone!

So I am trying to resize the primary button in my mobile layouts, ive tried the standard code below but it has no effect sadly.

Does anyone have an idea why this isn't working?

Code I have tried but makes no difference:

@media screen and (max-width:640px) {
a.sqs-block-button-element--large.sqs-block-button-element {
    font-size: 11px;

SS 7.1 newest version 🙂

Link to comment
  • Solution

Try this:

@media only screen and (max-width:640px) {
  .sqs-button-element--primary {
    font-size: 11px !important;
    padding: 0.8em 1.7em;

You might want to adjust the padding too, but that should be easy enough.

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 Did I help? Buy me a coffee?

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.