Solved

Change width of Variant Box

TDDFC
Tourist
13 0 1

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
6394 1535 1906

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 is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.

View solution in original post

PageFly-Henry
Shopify Partner
1149 324 278

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
1149 324 278

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
1149 324 278

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
6394 1535 1906

Hi @TDDFC 

Would you mind to share your sotre URL? Thanks!

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Made4uo-Ribe
Shopify Partner
6394 1535 1906

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 is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.