i want to center align my buy now and add to cart button to center in desktop version

zenost07
Visitor
1 0 0

Screenshot (66).pngi want to center align my buy now and add to cart button to center in desktop version

 

Replies 2 (2)

Sweet_Savior_3
Shopify Partner
1158 94 112

Hello @zenost07 

 

Welcome to Shopify Community.

 

Please paste the CSS in theme.liquid file above </head> tag.

<style>
.product-form .product-form__buttons {
margin: 0 auto;
}
</style>

 

OUTPUT:

Sweet_Savior_3_0-1712484786724.png

 

Thanks

Don't forget to like and accept the solution to help others store owners.
Looking for an expert or Have any queries ? Send query to the Inbox
Coffee Tip ? Pay to shopify.dev.34@gmail.com
From Less To Further !!!

PageFly-Noah
Astronaut
1079 197 215

This is Noah from PageFly - Shopify Page Builder App

You can fix it by add code here to the end file base.css:

 

.product-form__buttons{
  margin: auto !important;
}

 

Hope my solution will help you resolve the issue.

 

Best regards,

Noah | PageFly

Please let me know if it works by giving it a Like or marking it as a solution!


PageFly - #1 Page Builder for Shopify merchants.


All features are available from Free plan. Live Chat Support is available 24/7.