Issue: Text in buttons and text containers (email, search) not centering
Goal: Center buttons and text containers horizontally and vertically
Can you please help me center ALL the buttons and text containers? Thank you so much
pw: uflaw
A Shopify store owner is experiencing text alignment issues where buttons and text containers (email, search, add to cart) are not centering properly—specifically, text remains top-aligned instead of centered both horizontally and vertically.
Problem Details:
Solutions Attempted:
Two community members provided CSS code snippets targeting:
Both solutions used flexbox properties (display: flex, align-items: center, justify-content: center) and explicit height/width declarations.
Current Status:
Unresolved. The original poster reports that none of the provided CSS solutions are working—text continues to align to the top rather than centering vertically. They suspect there may be conflicting code in their theme forcing the top alignment and have requested continued assistance from the helpers.
Issue: Text in buttons and text containers (email, search) not centering
Goal: Center buttons and text containers horizontally and vertically
Can you please help me center ALL the buttons and text containers? Thank you so much
pw: uflaw
Hi @yasmineb
.newsletter__wrapper .newsletter-form__field-wrapper label.field__label {
padding-left: 128px !important;
}
.product-form__submit.button.button--full-width.button--secondary span {
width: 100% !important;
display: flex !important;
align-items: center !important;
justify-content: center !important;
}
Result:

If my reply is helpful, kindly click like and mark it as an accepted solution.
Thanks!
Use our Big Bulk Discount app to boost your sales!
(https://apps.shopify.com/big-bulk-discount). Easy to set up and perfect for attracting more customers with bulk discounts. Try it now and watch your revenue grow!
Hi @yasmineb
To complete your requests, please follow these steps:
button.quick-add__submit {
text-align: center !important;
}
Here is the result:
I hope this helps
Best,
Daisy
Hmmm for some reason that didn’t align it in the center vertically. It’s still top aligned?
Hmmm that also didn’t help me. It’s staying aligned to the top. I also need it applied to all the buttons not just add to cart
Update: For some reason those two codes are not aligning the text in the middle vertically. It’s staying top aligned. I wonder if this is an existing issue in the code?
@DaisyVo @websensepro are yall able to keep helping me? I’m not sure why your code aren’t working. Thank you
Hi @yasmineb
.newsletter__wrapper .newsletter-form__field-wrapper label.field__label {
padding-left: 128px !important;
}
.product-form__submit.button.button--full-width.button--secondary span {
width: 100% !important;
display: flex !important;
align-items: center !important;
justify-content: center !important;
}
.image-with-text__content .image-with-text__text+.button {
height: 50px !important;
display: flex !important;
justify-content: center;
align-items: center;
margin-top: 3rem;
}
.product-form__submit {
height: 100% !important;
margin-bottom: 1rem;
width: 100% !important;
display: flex !important;
justify-content: center !important;
align-items: center !important;
}
If my reply is helpful, kindly click like and mark it as an accepted solution.
Thanks!
Use our Big Bulk Discount app to boost your sales!
(https://apps.shopify.com/big-bulk-discount). Easy to set up and perfect for attracting more customers with bulk discounts. Try it now and watch your revenue grow!
@websensepro idk why that’s not working either
i wonder if something in my code is forcing it to align to the top?