Jump to content

Button aligment and same height (mobile breakpoint)

Recommended Posts

Site URL: https://www.desna.ca/register

Trying to get the buttons to align side by side instead of stack on mobile. I was able to do this on another page but the same code can not be applied here due to the 2 column layout 

 

section[data-section-id="insert here"] {
@media only screen and (max-width: 640px) {
.sqs-row:nth-child(2) {
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
}
}
}

472397730_Screenshot2021-10-01at7_47_46PM.thumb.png.74ef7a8215377e63cc692bc1506b3584.png

2076265465_Screenshot2021-10-01at7_47_41PM.thumb.png.22eaf4a2e0b70c2c6ac69c71c69f9aeb.png

Link to comment
8 hours ago, Maksymrewko said:

Site URL: https://www.desna.ca/register

Trying to get the buttons to align side by side instead of stack on mobile. I was able to do this on another page but the same code can not be applied here due to the 2 column layout 

 

section[data-section-id="insert here"] {
@media only screen and (max-width: 640px) {
.sqs-row:nth-child(2) {
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
}
}
}

472397730_Screenshot2021-10-01at7_47_46PM.thumb.png.74ef7a8215377e63cc692bc1506b3584.png

2076265465_Screenshot2021-10-01at7_47_41PM.thumb.png.22eaf4a2e0b70c2c6ac69c71c69f9aeb.png

Is this what you want?

image.png.1f2a200577367c2b097af45fa44b02eb.png

 

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, Keyword Highlighter
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
16 hours ago, Maksymrewko said:

Site URL: https://www.desna.ca/register

Trying to get the buttons to align side by side instead of stack on mobile. I was able to do this on another page but the same code can not be applied here due to the 2 column layout 

 

section[data-section-id="insert here"] {
@media only screen and (max-width: 640px) {
.sqs-row:nth-child(2) {
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
}
}
}

472397730_Screenshot2021-10-01at7_47_46PM.thumb.png.74ef7a8215377e63cc692bc1506b3584.png

2076265465_Screenshot2021-10-01at7_47_41PM.thumb.png.22eaf4a2e0b70c2c6ac69c71c69f9aeb.png

Add to Design > Custom CSS

/* Mobile-Register-Buttons side by side */
@media screen and (max-width:767px) {
div#page-section-60f635cc285ce460d19c3507 .span-3 {
    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

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.