Hi,
How do I change the add to cart button size to make it smaller? OR how do I just make it smaller on mobile? when views on mobile the button is cut off due to the size. Below is a reference photo from dekstop.
Hi @TPennell . Welcome to the Shopify Community!
It can be done with an additional CSS rule. Can I see an URL with the button?
Hi @TPennell
Could you share the link to your store?
Hello @TPennell
Go to online store ----> themes ----> actions ----> edit code ----> base.css
add this code at the end of the file and save.
.product-form-buttons button {
width: 80%;
margin: 0 auto !important;
}
result
If this was helpful, hit the like button and accept the solution.
Thanks
Hi @TPennell .
You can add the following code at the bottom of your base.css
@media screen and (max-width: 749px) {
.product-form-buttons > *:not(.quantity-selector) {
flex: unset!important;
margin: 0 auto!important;
}
}
The result should be:
I hope this helps!
If your question was answered, please mark it as an Accepted Solution
Glad that it helped!
This is a flexbox, you can’t really adjust it with percentages. Once the issue pops up, just post it on the forums, it won’t be difficult to solve ![]()
Great stuff - Appreciate your time and help
Anytime! Glad I could help!