Jump to content

Reduce width of CTA button on mobile

Go to solution Solved by tuanphan,

Recommended Posts

Posted

Hello Squarespace,

I'm in search of code to reduce the width of the CTA button on mobile, so there's not so much blank space on either side of the words, but without affecting the desktop view.

Thank you!

2023-02-17_14-48-34.png

  • 2 weeks later...
Posted
On 3/6/2023 at 4:15 AM, tuanphan said:

Add to Design > Custom CSS

/* Mobile button */
a.theme-btn--primary.btn.sqs-button-element--primary {
    padding-left: 10px !important;
    padding-right: 10px !important;
    min-width: unset !important;
}

 

Outstanding, @tuanphan! Thank you sooo much. Mobile CTA button looks so much better now!

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.