Jump to content

Centre Buttons on Mobile only css

Recommended Posts

  • 2 weeks later...

I'm curious about this too. I'd like to change buttons to Align Horizontally on mobile only. You can drag the button around on mobile without affecting desktop, yes, but changing the alignment affects both mobile and desktop. 

It's interesting because this isn't the case with changing the vertical alignment.

Link to comment
On 9/6/2022 at 4:15 AM, ehershberger said:

I'm curious about this too. I'd like to change buttons to Align Horizontally on mobile only. You can drag the button around on mobile without affecting desktop, yes, but changing the alignment affects both mobile and desktop. 

It's interesting because this isn't the case with changing the vertical alignment.

This cod for above site

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

 

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!)

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.