Tagged: add to cart button
Hello support, I added an “Add to Cart button” but the width is too long. Is there a way to add a quick CSS to centre the button add reduce its width to a reasonable size instead of full width?
I have attached my test page
Hey daakijoshua,
Add this to quick css:
.product_type_simple.add_to_cart_button{
max-width:150px!important;
margin:auto!important;
}
Best regards,
Jordan Shannon
Thanks so much Jordan, this worked!
Hi daakijoshua,
Glad we could help :)
If you need further assistance please let us know.
Best regards,
Victoria
Hello support, I would to centre the button on the shop page. The button is only centered on the product slider only. See private content
Hi,
Add this to quick css as well:
.button.product_type_simple.add_to_cart_button.ajax_add_to_cart {
max-width: 100%!important;
margin: auto 0!important;
width: 100%!important;
}
Best regards,
Jordan Shannon
Thanks Jordan, however this makes the buttons full width, I would like to have the buttons centered but not full width. I think like the previous 150px.