Jump to content

Button Stacking (Tab sections) - Mobile breakpoint

Go to solution Solved by tuanphan,

Recommended Posts

  • Replies 7
  • Views 477
  • Created
  • Last Reply

Top Posters In This Topic

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)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment
  • 2 weeks later...
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!)

Link to comment
  • Solution
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!)

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.