Hi! So, I added 2 rich text buttons beneath 2 columns. I want to space the buttons so they are directly beneath the columns buttons. Can someone help me? I’ll leave my site’s URL a a picture of what I’m referring to.
Topic summary
A user is trying to align rich text buttons directly beneath column buttons in the Dawn theme. They’ve provided their site URL and a screenshot showing the current layout.
Proposed Solution:
Another user suggests adding CSS to control button spacing:
- Use flexbox (
display: flex) withjustify-content: centeron the.rich-text__buttonsclass - Add a
gapproperty for spacing between buttons - Include a media query for responsive behavior at max-width 768px
- Adjust gap values (20px default, 50px on smaller screens)
Status: The CSS solution has been provided but not yet confirmed as implemented or tested by the original poster.
You can add the below CSS in your CSS file.
.rich-text__buttons.rich-text__buttons--multiple.scroll-trigger.animate--slide-in {
display: flex;
justify-content: center;
max-width: unset;
gap: 50px;
}
@media screen and (max-width: 767px) {
.rich-text__buttons.rich-text__buttons--multiple.scroll-trigger.animate--slide-in {
gap: 20px;
}
}
