Jump to content

Decreasing button font-size on mobile

Recommended Posts

Posted

Hi y'all!
I'm trying to change my button font-size on mobile. I know how to resize the buttons, but that doesn't affect the size of the text.

Didn't find any css code that works.

Any snippets or tricks would be really appreciated! Thanks!

Posted (edited)

@abbiericher You can add this code snippet within the Custom CSS panel:

@media only screen and (max-width: 640px) {
	#siteWrapper.site-wrapper .sqs-button-element--primary {
		font-size: 0.7rem !important;
	}
	#siteWrapper.site-wrapper .sqs-block-button-element {
		font-size: 0.7rem !important;
	}
}

You can adjust the font-size "0.7rem" in the code. 

Edited by Lesum

If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. 

Sam
Web Developer & Digital Designer

 Did you find my contribution helpful? Buy me a coffee?

  • 2 weeks later...

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.