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
  • 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

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Lightbox Studio plugin
If you find my answer fit your need, 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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.