Jump to content

Buttons Overlapping on Tablet

Recommended Posts

Hello!

I have two buttons on my website that are side-by-side and both left-aligned. I've adjusted the widths so that they are spaced evenly with this:


.sqs-block-button .sqs-block-button-element {
    display: inline-block;
    width: 150px;
      ;}

On mobile, the second button is pushed below the first, which is perfect. However, on Tablet, they are overlapping. I've been searching like crazy to find a fix, but no luck.

 

 

discordtwitteroverlap.PNG

Edited by Taylormoooon
Link to comment
  • Replies 3
  • Views 774
  • Created
  • Last Reply

Top Posters In This Topic

13 hours ago, Taylormoooon said:

Hello!

I have two buttons on my website that are side-by-side and both left-aligned. I've adjusted the widths so that they are spaced evenly with this:


.sqs-block-button .sqs-block-button-element {
    display: inline-block;
    width: 150px;
      ;}

On mobile, the second button is pushed below the first, which is perfect. However, on Tablet, they are overlapping. I've been searching like crazy to find a fix, but no luck.

 

 

discordtwitteroverlap.PNG

Kindly share your site with protected password to check it together

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 months later...
On 1/22/2022 at 2:24 AM, Taylormoooon said:

Hello! It's been some time. The website is open and it is www.jaypigs.com

The buttons are in the first section and they are good on mobile and desktop, but still overlapping on Tablet. 

Thanks!

Add to Design > Custom CSS

/* Tablet buttons overlap */
@media screen and (max-width:900px) and (min-width:641px) {
div#block-yui_3_17_2_1_1635815162772_5714+.row>.col:not(:first-child):not(:last-child) {
    width: 50%;
}
div#block-yui_3_17_2_1_1635815162772_5714+.row>.col:first-child, div#block-yui_3_17_2_1_1635815162772_5714+.row>.col:last-child {
    display: none;
}
}

 

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.