Jump to content

Button Aligment on Desktop and Mobile

Recommended Posts

Hi there, 

I am trying to align the buttons on a few pages of my site. I would like the buttons to be aligned with the other buttons in that section, regardless of the content in the column. See attached screenshots. 

These are the pages:

https://www.westendskincare.com/facials
https://www.westendskincare.com/advanced-skincare-treatments
https://www.westendskincare.com/hair-removal
https://www.westendskincare.com/packages

I tired using the below code (on the facials page) but it is not working. Any suggestions?

 

@media screen and (min-width:641px) {#collection-605105ce98128e2f5856d180
  button {display: flex; 
  justify-content: center;
  align-items: center; 
  }
}

 

Also tried this to target the section:

@media screen and (min-width:641px){section[data-section-id="605105ce98128e2f5856d184"]
  .button {display: flex; 
  justify-content: center;
  align-items: center; 
  }
}
 

Thank you!
 

Screen Shot 2023-02-27 at 12.18.41 PM.png

Screen Shot 2023-02-27 at 12.18.26 PM.png

Edited by AshM13
Link to comment
  • Replies 2
  • Views 136
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

With Facials Page, add to Design > Custom CSS. If it works, we will give code for other pages

/* align facials buttons */
@media screen and (min-width:768px) {
div#page-section-605105ce98128e2f5856d184>.row {
    display: flex;
}
div#page-section-605105ce98128e2f5856d184 .button-block {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}
div#page-section-605105ce98128e2f5856d184 .span-4 {
    flex: 1;
    position: relative;
    padding-bottom: 100px;
}
}

image.thumb.png.c9ff18875c061eb117bae5397c4f1f4a.png

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
  • 3 weeks later...

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.