i want to decrease the wi

i want to decrease the wi

learningdesign
Shopify Partner
205 1 24

i want to decrease the width but its not working

learningdesign_0-1725362287871.png

I am using this css

/* General styles for all devices */
.pxFormGenerator {
padding: 50px; /* Maintain your existing padding */
max-width: 95%; /* Slightly increase the width for mobile */
margin: 0 auto; /* Center the form */
box-sizing: border-box; /* Include padding in width calculations */
} /* Adjust styles for desktop screens (768px and up) */
@media (min-width: 768px) {
.pxFormGenerator {
max-width: 200px !important; /* Decrease the max-width for desktop and enforce it */
}
} /* */
@media (min-width: 1200px) {
.pxFormGenerator {
max-width: 200px !important; /* */
}
}

website link :   ge tlitledlighting .com

 



Replies 11 (11)

Rahul_dhiman
Shopify Partner
810 155 170

Hello @learningdesign 
Go to online store ----> themes ----> actions ----> edit code ---->assets ---->custom-neons.css
add this code at the end of the file.

#shopify-section-template--17499846246578__custom_liquid_PrBDmg .pxFormGenerator {
max-width: 60% !important;
}

result
4.png

If this was helpful, hit the like button and accept the solution.
Thanks

Want to modify or custom changes or bug fix on store . Or Need help with your store? Or -Want Complete Storefront

Contact here


BEST CUSTOMER ACCOUNTS APP WITH CUSTOM WISHLIST OPTION 
TRY OUR APP :

PWC: Customer Accounts & Pages

learningdesign
Shopify Partner
205 1 24

@Rahul_dhiman  there is no custom neon css    i have paste the code here please check in image its fine in desktop but now very bad in mobile

learningdesign_0-1725364003959.png

 

Tech_Coding
Shopify Partner
514 132 131

You can add code by following these steps

1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file

3. Paste the below code before </body> on theme.liquid
<style>
@media screen and (min-width: 768px){
   #shopify-section-template--17499846246578__custom_liquid_PrBDmg .pxFormGenerator {
        max-width: 60% !important;
   }
}
@media screen and (max-width: 767px){
    #shopify-section-template--17499846246578__custom_liquid_PrBDmg .pxFormGenerator {
        max-width: 100% !important;
     }
}
</style>
my reply helpful? Click Like to let me know!
your question answered? Mark it as an Accepted Solution.

my reply helpful? Click Like to let me know!
your question answered? Mark it as an Accepted Solution.
Shopify UI Developer
Your Coffee Tips adds a little sweetness to my day.
learningdesign
Shopify Partner
205 1 24

@Tech_Coding    sir its not in the middle now can you please send me another code

learningdesign_0-1725364565868.png

 

Tech_Coding
Shopify Partner
514 132 131

You can add code by following these steps

1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file

3. Paste the below code before </body> on theme.liquid
<style>
@media screen and (min-width: 768px){
   #shopify-section-template--17499846246578__custom_liquid_PrBDmg .pxFormGenerator {
        max-width: 60% !important;

        margin: auto !important;

  }
}
@media screen and (max-width: 767px){
    #shopify-section-template--17499846246578__custom_liquid_PrBDmg .pxFormGenerator {
        max-width: 100% !important;

        margin: auto !important;
     }
}
</style>
my reply helpful? Click Like to let me know!
your question answered? Mark it as an Accepted Solution.

my reply helpful? Click Like to let me know!
your question answered? Mark it as an Accepted Solution.
Shopify UI Developer
Your Coffee Tips adds a little sweetness to my day.
Rahul_dhiman
Shopify Partner
810 155 170

add this code below the custom css code

@media screen and (max-width: 749px) {
#shopify-section-template--17499846246578__custom_liquid_PrBDmg .pxFormGenerator {  
    max-width: 90% !important;
}
}

Thanks

Want to modify or custom changes or bug fix on store . Or Need help with your store? Or -Want Complete Storefront

Contact here


BEST CUSTOMER ACCOUNTS APP WITH CUSTOM WISHLIST OPTION 
TRY OUR APP :

PWC: Customer Accounts & Pages

learningdesign
Shopify Partner
205 1 24

@Rahul_dhiman   did not worked

learningdesign_0-1725365021552.png

 

Rahul_dhiman
Shopify Partner
810 155 170

You were suppose to add this code below the previous code.
but any how it seems that the issue is solved for both desktop and mobile.

Want to modify or custom changes or bug fix on store . Or Need help with your store? Or -Want Complete Storefront

Contact here


BEST CUSTOMER ACCOUNTS APP WITH CUSTOM WISHLIST OPTION 
TRY OUR APP :

PWC: Customer Accounts & Pages

Made4uo-Ribe
Shopify Partner
10137 2405 3039

Hi @learningdesign 

Check this one. 

From you Admin page, go to Online Store > Themes

Select the theme you want to edit

Under the Asset folder, open the main.css(base.css, style.css or theme.css)

Then place the code below at the very bottom of the file.

 

@media only screen and (min-width: 749px){
div#wizard-validation-form {
    max-width: 90%;
    margin: auto;
}
}
@media only screen and (max-width: 749px){
    div#wizard-validation-form {
    max-width: 95%;
    margin: auto;
}
}

 

And Save. 

result:

Made4uoRibe_0-1725364024283.png

 

 

Please don't forget to Like and Mark Solution to the post that helped you. 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.
learningdesign
Shopify Partner
205 1 24

@Made4uo-Ribe   did not worked

Made4uo-Ribe
Shopify Partner
10137 2405 3039

Try to add !important. Like this. 

 

@media only screen and (min-width: 749px){
div#wizard-validation-form {
    max-width: 90% !important;
    margin: auto !important;
}
}
@media only screen and (max-width: 749px){
    div#wizard-validation-form {
    max-width: 95% !important;
    margin: auto !important;
}
}

 

  And Save. 

 

 

 

Please don't forget to Like and Mark Solution to the post that helped you. 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.