Shopify themes, liquid, logos, and UX
Hi All, please help me to make the collapsable component the same width as the rest of my website (dawn theme).
I have made it in 2 columns through code but now it stretches the whole width of my website, when viewing on a larger screen.
I also don't want a huge gap in between the two columns..
Please look at the picture for reference.
Would appreciate any help.
Hi @astralresorcez , kindly provide your store URL please and if it is password protected, please share the password as well. Thanks
PLease, share your store URL. Thanks!
Thanks for the info, try this one.
@media (min-width: 989px) {
.collapsible-content__wrapper {
max-width: var(--page-width);
margin: auto;
}
}
@media (min-width: 750px) {
.collapsible-content__wrapper {
padding: 0 3.5rem;
}
}
Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better!
Hi, thanks for this however it's still spanning the entire width of screen when full screen. Do you have any other suggestions?
Thanks!
Did you try to add the code? This is what it look like on my end.
I added the default max-width which is for all the max-width in your all your section. If it not working add the !important.
@media (min-width: 989px) {
.collapsible-content__wrapper {
max-width: var(--page-width) !important;
margin: auto;
}
}
@media (min-width: 750px) {
.collapsible-content__wrapper {
padding: 0 3.5rem;
}
}
And Save.
Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better!
Hi @astralresorcez
1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.css / based.css file and paste the code in the bottom of the file.
@media(min-width:930px){
.collapsible-content__wrapper.section-template--16393414901859__collapsible_content_VY3JhX-padding {
padding: 40px 36px;
}
}
If my reply is helpful, kindly click like and mark it as an accepted solution.
If you are happy with my help, you can help me buy a COFFEE
Thanks!
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024