All things Shopify and commerce
i want to decrease the width but its not working
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
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
If this was helpful, hit the like button and accept the solution.
Thanks
@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
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.
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.
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
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.
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:
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
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!
By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024