Jump to content

Resizing buttons for mobile view

Recommended Posts

Posted

Hello! How can I resize the buttons on my website to be smaller for mobile view? On desktop, the button size is small but when I change to mobile view the buttons compress into a big button

  • 2 months later...
Posted

I tried this CSS in 7.1, and it did not work for me.  Is there a fix for 7.1?  I just want the buttons to be smaller and proportional when on mobile.

Posted
On 7/21/2020 at 3:07 AM, jjjuliejj said:

I tried this CSS in 7.1, and it did not work for me.  Is there a fix for 7.1?  I just want the buttons to be smaller and proportional when on mobile.

If you share link to your site, we can take a look

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

  • 2 years later...
Posted
On 2/9/2023 at 9:01 PM, ebbah said:

Hi! 
I have the same problem: I can't resize the button on mobile view. Does anyone know how to do it? The code mentioned above doesn't work for me.

site's URL: https://www.flockfestival.se/

password: squarespace


Thanks in advance!

You mean this button?

image.png.b4774564e2d97c15a747253672b9c9f2.png

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Posted (edited)

Yes, exactly. That one, but also for the other buttons on the site (for now I have two in total) would be nice to get smaller in the mobile view.

Edited by ebbah
Posted
On 2/13/2023 at 9:56 PM, ebbah said:

I am also wondering how to style this section so that the names doesn't get cut off in the bottom: 

Same site and password.

Skärmavbild 2023-02-13 kl. 15.55.23.png

#1. Add to Design > Custom CSS

@media screen and (max-width:767px) {
div.button-block a[class*="sqs-block-button-element"].sqs-block-button-element {
    font-size: 16px !important;
    padding: 10px 20px !important;
    height: auto !important;
}
}

#2. Name looks fine. Did you solve it?

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Posted (edited)
On 2/15/2023 at 1:42 PM, tuanphan said:

#1. Add to Design > Custom CSS

@media screen and (max-width:767px) {
div.button-block a[class*="sqs-block-button-element"].sqs-block-button-element {
    font-size: 16px !important;
    padding: 10px 20px !important;
    height: auto !important;
}
}

#2. Name looks fine. Did you solve it?

#1. Thanks, it works but how do I decrease the sides of the button? 

#2. No, the names still get cut off, look at the g in "Öberg" for example. How do I code so that it gets more space in the bottom and dosen't get cut off?

Skärmavbild 2023-02-23 kl. 10.34.12.png

Edited by ebbah
Posted
On 2/23/2023 at 4:37 PM, ebbah said:

#1. Thanks, it works but how do I decrease the sides of the button? 

#2. No, the names still get cut off, look at the g in "Öberg" for example. How do I code so that it gets more space in the bottom and dosen't get cut off?

Skärmavbild 2023-02-23 kl. 10.34.12.png

You can adjust this line

  padding: 10px 20px !important;

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

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.