Jump to content

Need Help To Place Mobile Buttons Side-By-Side

Recommended Posts

Site URL: https://decade3.co.uk

So on the home page of our website I'd like to change the buttons at the bottom to be displayed side-by-side ("Learn More" and "Talk To Us"). Right now the furthest I've gone with the code to centralise the buttons on mobile is: 
 

@media screen and (max-width:640px) {
.sqs-block-button * {
    text-align: center !important;
}
}

But I'd very much like them to be displayed side-by-side on mobile, as in browser: 
image.png.20573d1522e8e271e6c87b7f377a5673.png
 How do I achieve this? 

Link to comment
  • Replies 3
  • Created
  • Last Reply

Add to Home > Design > Custom CSS

/* buttons side by side */
@media screen and (max-width:767px) {
div#page-section-5f7565448036587780a97721 .span-12>.row:nth-child(2) .span-6 {
    width: 50% !important;
    float: left !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!)

Link to comment

Remove above & use new code

/* buttons side by side */
@media screen and (max-width:767px) {
div#page-section-5f7565448036587780a97721 .span-12>.row:nth-child(2) .span-6 {
    width: 50% !important;
    float: left !important;
}
div#page-section-5f7565448036587780a97721 .span-12>.row:nth-child(2) .span-6 a {
    padding: 10px 25px;
}
}

 

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.