Hi there I was hoping I could get some help in making rich text go side by side on mobile. https://petesrubbers.com/pages/diesel I
I would like for the button and the words to be side by side. Any help will be greatly appreciated.
A user seeks help making rich text elements display side by side on mobile for their Shopify store page (petesrubbers.com/pages/diesel). Currently, a button and text stack vertically on mobile devices.
Proposed Solution:
display: flex with align-items: center and justify-content: space-betweenflex-wrap: wrap and gap: 10px for responsive spacingImplementation:
base.css or the theme’s custom CSS sectionStatus: One community member provided CSS code; awaiting confirmation if solution resolves the issue.
Hi there I was hoping I could get some help in making rich text go side by side on mobile. https://petesrubbers.com/pages/diesel I
I would like for the button and the words to be side by side. Any help will be greatly appreciated.
hi @Rio_Omnis
Thanks for sharing your site. To make the button and the text appear side by side on mobile (like on the Diesel page), you’ll need to adjust the CSS for that section to use flexbox.
.text-button-row {
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: 10px;
}
.text-button-row p {
margin: 0;
}
.text-button-row .btn {
background-color: #007bff;
color: white;
padding: 10px 20px;
text-decoration: none;
border: none;
}
If you’re using Dawn or a similar Shopify theme, you can add this CSS to base.css or use the “custom CSS” section in the theme editor if it’s available.