AshM13 Posted February 27, 2023 Share Posted February 27, 2023 (edited) 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/facialshttps://www.westendskincare.com/advanced-skincare-treatmentshttps://www.westendskincare.com/hair-removalhttps://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! Edited February 27, 2023 by AshM13 Link to comment
tuanphan Posted March 5, 2023 Share Posted March 5, 2023 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; } } 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
AshM13 Posted March 23, 2023 Author Share Posted March 23, 2023 Thank you @tuanphan! I will test and let you know. Appreciate it! Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment