Jump to content

Quantity and Drop Down Variant Box

Recommended Posts

Add to Home > Design > custom CSS

/* Variant */
.variant-select-wrapper {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}
/* Quantity */
.product-quantity-input input {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 1 month later...
On 4/29/2020 at 7:38 AM, tuanphan said:

Add to Home > Design > custom CSS


/* Variant */
.variant-select-wrapper {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}
/* Quantity */
.product-quantity-input input {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

 

Hi,

How would edit the width of these boxes as well ?

Thanks

Link to comment
  • 3 months later...
  • 3 months later...

.variant-select-wrapper {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
      width: 70%
}
/* Quantity */
.product-quantity-input input {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
      width: 35%
}

 

you can play around with the numbers of the width to see what works best 

Link to comment
On 1/23/2021 at 4:20 AM, lynnnn said:

.variant-select-wrapper {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
      width: 70%
}
/* Quantity */
.product-quantity-input input {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
      width: 35%
}

 

you can play around with the numbers of the width to see what works best 

I think you should set media query. unless the quantity/variant will be ugly on mobile

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 7 months later...
On 1/24/2021 at 1:37 AM, tuanphan said:

I think you should set media query. unless the quantity/variant will be ugly on mobile

hi, on mine the custom css doesn't change both the padding and width, if i delete the 2nd input is change and vice versa with width 

Link to comment
  • 4 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.