-1

How do i center the add to cart button:

Here is the section:

enter image description here

You can find the page here:

https://silverblaar.tmmbuilds.com/product/full-spectrum-cbd-health-oil/

I have tried the following code but it's not working:

.woocommerce div.product form.cart { 
  float:none !important; 
}

Thanks!

Ruvee
  • 8,611
  • 4
  • 18
  • 44
userPH
  • 11
  • 3

2 Answers2

1

you can simply center quantity selector and button by adding these CSS

form.cart {
display: flex;
justify-content: center;
align-items: baseline;
}

center

regards

Keev studio
  • 179
  • 4
1

Target the form and use the text-align to center it!

.woocommerce div.product form.cart{
  text-align: center;
}

enter image description here

Ruvee
  • 8,611
  • 4
  • 18
  • 44