Edit padding on custom section

Edit padding on custom section

astralresorcez
Tourist
5 0 1

Screenshot 2024-12-04 at 14.16.50.png

 

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. 

Replies 7 (7)

steve_michael2
Trailblazer
439 38 55

Hi @astralresorcez  , kindly provide your store URL please and if it is password protected, please share the password as well. Thanks

Crafting exceptional online experiences with innovative design and technology.

Try Big Bulk Discount To Boost Your Store Sales with Volume/Tier Discount

Made4uo-Ribe
Shopify Partner
9567 2279 2828

Hi @astralresorcez 

PLease, share your store URL. 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.
Create custom Shopify pages effortlessly with PageFly's drag-and-drop ⚙️.
Made4uo-Ribe
Shopify Partner
9567 2279 2828

Thanks for the info, try this one. 

  1. From your Shopify admin dashboard, click on "Online Store" and then "Themes".
  2. Find the theme that you want to edit and click on "Actions" and then "Edit code".
  3. In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

 

@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;
}
} 

 

  • And Save.
  • Result:
  • Made4uoRibe_0-1733330764706.png

     

 

 Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better! 

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.
Create custom Shopify pages effortlessly with PageFly's drag-and-drop ⚙️.
astralresorcez
Tourist
5 0 1

Hi, thanks for this however it's still spanning the entire width of screen when full screen. Do you have any other suggestions?

 

Thanks!

Made4uo-Ribe
Shopify Partner
9567 2279 2828

Did you try to add the code? This is what it look like on my end. 

Made4uoRibe_0-1733401190469.png

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! 

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.
Create custom Shopify pages effortlessly with PageFly's drag-and-drop ⚙️.
steve_michael2
Trailblazer
439 38 55

 


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!

Crafting exceptional online experiences with innovative design and technology.

Try Big Bulk Discount To Boost Your Store Sales with Volume/Tier Discount