Hi, I would like to make the variant picker and quantity selector on the same line horizontally, both to be as long as the “ADD TO CART” button, but to have a bit of margin between them. I would like to be like this on all screens and devices, so laptops, tablets, phones and everything in between and beyond. The best I could point out would be as in the screenshot below:
Many Thanks.
1 Like
Hi @Jeremayah
Can I give a try? Would you mind to share your Store URL website? with password if its protected. Thanks!
1 Like
Thank you, try this one.
- From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
- Find the theme that you want to edit and click on “Actions” and then “Edit code”.
- In the “Assets” folder, click on “base.css, style.css or theme.css” file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
div#Quantity-Form-template--21264904388917__main {
display: flex;
flex-direction: column;
align-items: flex-end;
}
quantity-input.quantity {
width: 18rem;
}
variant-selects#variant-selects-template--21264904388917__main {
position: absolute;
top: 7.7%;
width: 60%;
}
1 Like
Thanks for this, but it does this when loading page:
Also, this is only applied to one product template and not a global setting.
I would also like the quantity selector to be as small as possible, and the text above it to be aligned left (as the text “color” for variant is).
Many thanks again.
You think you could have a look at it? Thanks.