Jump to content

Button No Longer Centered on Mobile

Recommended Posts

On 9/6/2022 at 5:13 AM, JasonHaywood said:

Site URL: https://www.coolkoala.ca


For some reason, one of the buttons on my page (the 'Get a Quote' button above the fold) randomly stopped aligning to centre on mobile. I was using custom code to do so (so it would stay left-aligned on desktop and go to centre-aligned on mobile), but it doesn't seem to be working anymore.

Is anyone able to help with this? Thanks!

Add to Design > Custom CSS

/* center get a quote */
@media screen and (max-width:767px) {
div#block-yui_3_17_2_1_1646339261466_41622 div {
    text-align: center;
    display: block;


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.