Jump to content

How can I get 3 buttons to display side-by-side on mobile?

Recommended Posts

Add to Design > Custom CSS

/* 3 buttons side by side */
@media screen and (max-width:767px) {
div#page-section-612d39c8b577d75aeeaa0ec5 .span-10>.row:nth-child(3) .col {
    width: calc(~"33.3333% - 20px") !important;
    float: left !important;
    margin: 10px !important;
}
div#page-section-612d39c8b577d75aeeaa0ec5 .span-10>.row:nth-child(3) .col * {
    font-size: 12px;
}
div#page-section-612d39c8b577d75aeeaa0ec5 .span-10>.row:nth-child(3) .col .button-block {
    padding: 0 !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
6 hours ago, tuanphan said:

Add to Design > Custom CSS

/* 3 buttons side by side */
@media screen and (max-width:767px) {
div#page-section-612d39c8b577d75aeeaa0ec5 .span-10>.row:nth-child(3) .col {
    width: calc(~"33.3333% - 20px") !important;
    float: left !important;
    margin: 10px !important;
}
div#page-section-612d39c8b577d75aeeaa0ec5 .span-10>.row:nth-child(3) .col * {
    font-size: 12px;
}
div#page-section-612d39c8b577d75aeeaa0ec5 .span-10>.row:nth-child(3) .col .button-block {
    padding: 0 !important;
}
}

 

Thank you so much!

Do you have any idea how I could fix the sizing issue on the buttons so that they appear to be the same size?

Screen Shot 2021-09-01 at 11.35.13 AM.png

Link to comment
On 9/1/2021 at 10:40 PM, chadhinsonjr said:

Thank you so much!

Do you have any idea how I could fix the sizing issue on the buttons so that they appear to be the same size?

Screen Shot 2021-09-01 at 11.35.13 AM.png

You mean make button 3 same as 1&2

or make button 1&2 same as button 3?

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
  • 1 month later...
On 10/19/2021 at 3:42 AM, chadhinsonjr said:

Hey, I was wondering if it is possible to do this same thing with 3-4 elements. If you see the picture below there is a text block, a picture block, a button block, and a space block to offset the image. Is there a way to have this displayed exactly like this on mobile?  the url is https://creativebelievers.com/staymotivated

Screen Shot 2021-10-18 at 4.41.11 PM.png

You mean make mobile layout same as, with 2 columns: left is text/button - right is image?

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

@tuanphan I am trying to do this same thing having three buttons appear side by side on mobile instead of stacked. I updated your code above with my page section ID but to no avail.

Can you take a look? Thank you as always!

https://tuna-avocado-cgfe.squarespace.com/test-home

pw: test

 

1842050004_ScreenShot2021-10-21at11_27_58AM.thumb.png.e2d43825d7993a62f6b66992281b3bed.png

 

 


/* 3 buttons side by side */
@media screen and (max-width:767px) {
div#page-section-6171ac076dfa283371c5eb31 .span-10>.row:nth-child(3) .col {
    width: calc(~"33.3333% - 20px") !important;
    float: center !important;
    margin: 10px !important;
}
div#page-section-6171ac076dfa283371c5eb31 .span-10>.row:nth-child(3) .col * {
    font-size: 12px;
}
div#page-section-6171ac076dfa283371c5eb31 .span-10>.row:nth-child(3) .col .button-block {
    padding: 0 !important;
}
}

Link to comment
On 10/21/2021 at 7:57 AM, chadhinsonjr said:

Yes exactly 

Add to Design > Custom CSS

@media screen and (max-width:767px) {
div#block-yui_3_17_2_1_1634777764830_13518+.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
On 10/22/2021 at 1:29 AM, unavolta said:

@tuanphan I am trying to do this same thing having three buttons appear side by side on mobile instead of stacked. I updated your code above with my page section ID but to no avail.

Can you take a look? Thank you as always!

https://tuna-avocado-cgfe.squarespace.com/test-home

pw: test

 

1842050004_ScreenShot2021-10-21at11_27_58AM.thumb.png.e2d43825d7993a62f6b66992281b3bed.png

 

 


/* 3 buttons side by side */
@media screen and (max-width:767px) {
div#page-section-6171ac076dfa283371c5eb31 .span-10>.row:nth-child(3) .col {
    width: calc(~"33.3333% - 20px") !important;
    float: center !important;
    margin: 10px !important;
}
div#page-section-6171ac076dfa283371c5eb31 .span-10>.row:nth-child(3) .col * {
    font-size: 12px;
}
div#page-section-6171ac076dfa283371c5eb31 .span-10>.row:nth-child(3) .col .button-block {
    padding: 0 !important;
}
}

Add to Design > Custom CSS

/* Mobile-Buttons side by side */
@media screen and (max-width:767px) {
div#block-9c340f7969e60c1fbf6c+.row>.span-2 {
    width: 33.3333% !important;
    float: left !important;
}
div#block-9c340f7969e60c1fbf6c+.row>.span-10 {
    width: 66.6667% !important;
    float: left !important;
}
div#block-9c340f7969e60c1fbf6c+.row>.span-10>.row>.col {
    width: 50% !important;
    float: left !important;
}
div#block-9c340f7969e60c1fbf6c+.row .button-block a {
    padding: 10px 15px;
}
div#block-9c340f7969e60c1fbf6c+.row .button-block {
    padding: 0 !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

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.