Home › Forums › Support › Center align add to cart field and button This topic has 3 replies, 2 voices, and was last updated 4 years, 1 month ago by Tom. Viewing 4 posts - 1 through 4 (of 4 total) Author Posts February 17, 2019 at 5:10 am #812625 Alexandre Hi, I’m struggling with centered alignment on single product page with Add to cart and field on mobile display. Here is what I have actually : @media (max-width: 768px) { .woocommerce div.product .product_title, .price, .posted_in, .woocommerce div.product form.cart { text-align: center; } } but I can’t figure out how to align field & Add to cart button Thanks your excellent support, as usual !! GeneratePress 2.2.2GP Premium 1.7.7 February 17, 2019 at 8:47 am #812869 TomLead Developer Lead Developer Hi there, Try adding this CSS as well: @media (max-width: 768px) { .woocommerce div.product form.cart div.quantity, .woocommerce div.product form.cart .button { float: none; display: inline-block; } .woocommerce div.product form.cart .button { margin-top: -4px; } } Documentation: http://docs.generatepress.com/ Adding CSS: http://docs.generatepress.com/article/adding-css/ Ongoing Development: https://generatepress.com/ongoing-development February 17, 2019 at 9:18 am #812902 Alexandre Excellent, Thanks a lot February 17, 2019 at 5:17 pm #813125 TomLead Developer Lead Developer You’re welcome 🙂 Documentation: http://docs.generatepress.com/ Adding CSS: http://docs.generatepress.com/article/adding-css/ Ongoing Development: https://generatepress.com/ongoing-development Author Posts Viewing 4 posts - 1 through 4 (of 4 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In