Change width of Variant Box

Solved

Change width of Variant Box

TDDFC
Tourist
20 0 2

Does anyone know how I can modify this css so I can have a larger variant box on a desktop compared to a mobile device?

 

select#variation_custom_btn {
width: auto !important;
max-width: 195px !important;
}

Accepted Solutions (2)
Made4uo-Ribe
Shopify Partner
9870 2351 2947

This is an accepted solution.

Thanks for the info,check this one. 

Adjust your code. 

select#variation_custom_btn {
    width: 100% !important;
    max-width: 100% !important;
}
.stockDeatil.varaints-sec div {
    flex-grow: 1;
}

And Save. 

Result:

Made4uoRibe_0-1718031201007.png

If you like lesser width. Adjust the width: only. 

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.

View solution in original post

PageFly-Henry
Shopify Partner
1184 335 295

This is an accepted solution.

Hi @TDDFC 

This is Henry from PageFly - Landing Page Builder App

 

You can try this code by following these steps: 

Step 1: Go to Online Store->Theme->Edit code.

Step 2: Search file base.css

Step 3: Paste the below code at bottom of the file -> Save

 

.stockDeatil 

 select#variation_custom_btn {

    width: 100% !important;

    max-width: 100% !important;

}

.stockDeatil.varaints-sec {

    display: block !important;

}

 

Hope that my solution works for you.

Best regards,

Henry | PageFly

Please let me know if it works by giving it a Like or marking it as a solution!


PageFly - #1 Page Builder for Shopify merchants.


All features are available from Free plan. Live Chat Support is available 24/7.

View solution in original post

Replies 5 (5)

PageFly-Henry
Shopify Partner
1184 335 295

Could you share with me the url page?

 

Please let me know if it works by giving it a Like or marking it as a solution!


PageFly - #1 Page Builder for Shopify merchants.


All features are available from Free plan. Live Chat Support is available 24/7.

PageFly-Henry
Shopify Partner
1184 335 295

This is an accepted solution.

Hi @TDDFC 

This is Henry from PageFly - Landing Page Builder App

 

You can try this code by following these steps: 

Step 1: Go to Online Store->Theme->Edit code.

Step 2: Search file base.css

Step 3: Paste the below code at bottom of the file -> Save

 

.stockDeatil 

 select#variation_custom_btn {

    width: 100% !important;

    max-width: 100% !important;

}

.stockDeatil.varaints-sec {

    display: block !important;

}

 

Hope that my solution works for you.

Best regards,

Henry | PageFly

Please let me know if it works by giving it a Like or marking it as a solution!


PageFly - #1 Page Builder for Shopify merchants.


All features are available from Free plan. Live Chat Support is available 24/7.

Made4uo-Ribe
Shopify Partner
9870 2351 2947

Hi @TDDFC 

Would you mind to share your sotre URL? Thanks!

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
Made4uo-Ribe
Shopify Partner
9870 2351 2947

This is an accepted solution.

Thanks for the info,check this one. 

Adjust your code. 

select#variation_custom_btn {
    width: 100% !important;
    max-width: 100% !important;
}
.stockDeatil.varaints-sec div {
    flex-grow: 1;
}

And Save. 

Result:

Made4uoRibe_0-1718031201007.png

If you like lesser width. Adjust the width: only. 

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.