Jump to content

Button Stacking (Tab sections) - Mobile breakpoint

Go to solution Solved by tuanphan,

Recommended Posts

  • Replies 7
  • Views 778
  • Created
  • Last Reply

Top Posters In This Topic

Posted
16 minutes ago, Maksymrewko said:

Hi there 🙂 

Need some help trying to stack these buttons on the mobile breakpoint. I followed Will Myres' video to achieve these tab sections - so they are not your traditional buttons. Any help would be much appreciated.

Many thanks 

Screenshot 2023-01-04 at 00.19.12.png

Can you show me the result you want to achieve?

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox - PDF Lightbox popup - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> No-code customisations for Squarespace

  • 2 weeks later...
Posted
On 1/17/2023 at 7:35 AM, Maksymrewko said:

Add to Design > Custom CSS

@media screen and (max-width:767px) {
.tabs-container button {
    max-width: unset !important;
    display: block !important;
    margin: 0 !important;
    width: 100% !important;
    background-color: #ee7d00 !important;
    color: white !important;
    margin-bottom: 20px !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!)

  • Solution
Posted
On 1/19/2023 at 9:50 AM, Maksymrewko said:

@tuanphan that works but I get a huge gap bewteen the search bar and buttons? I tried to set the padding to 0 for the code block but that didn't help. Any thoughts?

Screenshot 2023-01-18 at 20.49.54.png

Use this new code

@media screen and (max-width:767px) {
.tabs-container button {
    max-width: unset !important;
    display: block !important;
    margin: 0 !important;
    width: 100% !important;
    background-color: #ee7d00 !important;
    color: white !important;
    margin-bottom: 20px !important;
}
.tabs-container {
    transform: unset !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!)

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.