Looking to position the quantity input field and Add to cart button next to each other instead of one below the other in Bricks?
Add this CSS:
form.cart {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 1em;
}
.single-product .summary form.cart .quantity+button {
margin-top: 0;
}
Before:

After:

3 comments
Marc Robinson
.woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; align-items: center; gap: 1em; }
Samuel
Doesn't work.
Neither with flex-wrap: nowrap;
Only shows correctly in builder but not in front-end, for some odd reason, local browser CSS overrules the flex CSS.
Barnabas Chris
I think the css should be flex-wrap: nowrap;