Jump to content

Buttons side by side on mobile

Recommended Posts

  • Replies 5
  • Views 934
  • Created
  • Last Reply
On 5/24/2021 at 11:45 PM, kiwicreativedesign said:

Site URL: https://algae-tuna-pjta.squarespace.com/home

Hello! I am hoping to get some help with the css code to make two of the buttons on my homepage side-by-side for mobile?

The site is :https://algae-tuna-pjta.squarespace.com/home

Password: maggie

The buttons are in the last section above the footer, screenshot attached. 

Thanks, in advance! 

Screen Shot 2021-05-20 at 11.58.30 AM.png

Add to Design > Custom CSS

/* Mobile-Homepage-buttons side by side */
@media screen and (max-width:767px) {
div#block-yui_3_17_2_1_1620156927139_26203+.row .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
38 minutes ago, kiwicreativedesign said:

@tuanphan Thank you so much! For desktop I need the left button right justified and the right button left justified. Is it possible to center them for mobile only?

Move this or?

image.thumb.png.287fc747eeca829ae130f064b1363a11.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!)

Link to comment
On 5/27/2021 at 12:16 AM, kiwicreativedesign said:

@tuanphan

Sorry -  I need them as they are now on desktop but am hoping to have the buttons (and button text) centered on Mobile.

Add to Design > Custom CSS

/* Mobile-Align center buttons text */
@media screen and (max-width:767px) {
div#page-section-608c55e44cedb10780e07622 .button-block a {
    text-align: center;
}
}

 

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.