Hi can anyone help me with the CSS to remove the side padding from collapsable content?
thank you
Hi can anyone help me with the CSS to remove the side padding from collapsable content?
thank you
Hi @girltimebeauty ,
If you mean making the space around the collapsible content container smaller, here are the steps you can follow:
1, Navigate to Online Store > Themes > Edit Code.
2, Locate and open the base.css (or theme.css, custom.css) file.
3, Paste the code snippet provided below at the bottom of the file, then save your changes.
.collapsible-content-wrapper-narrow {
/* You can adjust this value to your preference */
max-width: 100rem !important;
}
Here is the result
We hope this assists in resolving the issue.
If you find our solution helpful, kindly consider Liking and Marking it as Accepted. Thank you!
That didnt work, im trying to remove the side so left and right padding, i currently have the content aligned left but there is still a huge gap between the side of the page, let me know if there’s another code i can try
I’ve checked your store and there’s a missing closing curly brace. Please try again with this code (adding the missing “}”)
}
.collapsible-content-wrapper-narrow {
/* You can adjust this value to your preference */
max-width: 120rem !important;
}
Here is the result
If that didn’t work you can try adding this code snippet right before the closing head tag in the theme.liquid file
Please let me know if you having any issues.
perfect that fixed it thank you so much!
If you find our solution helpful, kindly consider Liking and Marking it as Accepted. It means a lot to us. Thank you!