Hi, I’m having trouble trying to get the quantity selector to be aligned with the variant picker on the same line (rather than it being one on top of the other) - on the Debutify theme. My website is here. Any advice is appreciated.
Hello @BraxtonEcom
-
Open code editor
-
Please copy and paste below css at the bottom of file in ‘Assets > theme.scss.css’
.product-single__form .product-single__quantity.spacer-bottom {
width: 49%;
margin-left: 15px;
}
.product-single__form .grid.grid-small {
float: left;
width: 49%;
margin-left: 8px;
}
.product-single__form .product-single__form .product-form__item {
padding-left:0;
}
.product-single__form .product-single__quantity.spacer-bottom::before {
clear: both;
}
Regards
Hi @Savior
Thank you for replying,
I’ve added the code and it’s resulted in the attached image. Is there any way of making both selectors aligned next to each other side by side, as shown with the red drawing on the attached image.
Also, is there any way of making it so the two selectors are aligned side by side on mobile only - and not desktop (so it remains how they originally were on desktop - one above the other)? No worries if not.
Thanks
@BraxtonEcom Please replace the code with the below new code
@media only screen and (max-width: 767px){
.product-single__form .product-single__quantity.spacer-bottom {
width: 49%;
margin-left: 8px;
}
.product-single__form .grid.grid-small {
float: left;
width: 49%;
}
.product-single__form .product-single__form .product-form__item {
padding-left:0;
}
.product-single__form .product-single__quantity.spacer-bottom::before {
clear: both;
}
}
Regards
2 Likes
Perfect, Thank you