x

How do I reduce the padding and size of my sections?

[Note: The title of this post has been edited by a moderator.]

Is there a way to reduce the internal padding of the new section elements or to reduce the minimum size? I noticed you can click and drag to make them larger, but there's more blank space inside of a few than I'd like, so I would like to find a way to make them smaller than is currently working. 

Thanks!

EDIT:  I found the 2 portions of code I needed to change.

22,467 Views
Message 1 of 56
Report
5 Best Answers

Best Answer

You can add this code to "Settings" > "SEO" > Header if you want to remove the padding on all your "sections". If you have spacers at the top, this will make a difference though, so to get it with 0 padding you'll want to delete any spacers from the top. 

If you only one it on one page, you can add it from "Pages" > click on the page on the left > SEO Settings > Header

<style>
.content-wrap.container {
 margin-top: -20px !important;
}
</style>

Note: you probably won't be able to see these changes in the editor, you have to add the code, then publish and check your live site to see the effects.  

View Best Answer >

22,379 Views
Message 17 of 56
Report
Square

Best Answer

Try adding this to Settings > SEO > Header Code:

<style>
.wsite-section-content > .container
{
	padding:10px !important;
}
</style>

View Best Answer >

14,270 Views
Message 52 of 56
Report

Best Answer

I solved this for the Birdseye theme.

Go into the THEME tab and select Edit HTML / CSS.

Under the Styles folder, select _global.less.

Scroll down the code until you see /* Main Content + Sections */. For me this was on line #159.

Alter: (for me this was on line 173)

  .container {
    padding: 60px 40px;
  }

I changed mine to:

.container {
padding: 20px 20px;
}

Change it to what you need. The first number should be the top, the second number should be the bottom padding.

You won't see the changes in the preview window on the right. Just click Save in the top right and you're good.

Once again, this is only for the Birdseye theme.

View Best Answer >

11,727 Views
Message 52 of 56
Report

Best Answer

I tried this, it didn't work for me but I found the code that did work in my theme.   Here it is below.  Originally 10px was 25px, I reduced to 10 because 0 was just too close and I didn't feel like adding in all the spacers myself.  I hope this helps someone!!

}
#main-wrap .container {
padding: 10px 2em;
}

www.costumizeme.com

View Best Answer >

19,390 Views
Message 17 of 56
Report

Best Answer

Guys,

its the max width property you need to set to shirnk the left/right margins

<style>
.wsite-section-content > .container
{
padding:10px !important;
max-width: 90% !important;
}
</style>

View Best Answer >

13,507 Views
Message 52 of 56
Report
55 REPLIES 55

Good to hear you've made the change! What code are you using?

18,930 Views
Message 4 of 56
Report

What code did you use to get the shrinkage you needed?

18,874 Views
Message 4 of 56
Report

I would love to know as well.

18,886 Views
Message 5 of 56
Report

So how did you do this?

18,880 Views
Message 6 of 56
Report

What code did you use in the custom editor?

18,850 Views
Message 17 of 56
Report

Best Answer

You can add this code to "Settings" > "SEO" > Header if you want to remove the padding on all your "sections". If you have spacers at the top, this will make a difference though, so to get it with 0 padding you'll want to delete any spacers from the top. 

If you only one it on one page, you can add it from "Pages" > click on the page on the left > SEO Settings > Header

<style>
.content-wrap.container {
 margin-top: -20px !important;
}
</style>

Note: you probably won't be able to see these changes in the editor, you have to add the code, then publish and check your live site to see the effects.  

22,380 Views
Message 17 of 56
Report

I'm using Birdseye, that code didn't work, where to change it in the HTML? There is too much padding in secitons. Thanks! Smiley Happy

18,824 Views
Message 17 of 56
Report

Best Answer

I tried this, it didn't work for me but I found the code that did work in my theme.   Here it is below.  Originally 10px was 25px, I reduced to 10 because 0 was just too close and I didn't feel like adding in all the spacers myself.  I hope this helps someone!!

}
#main-wrap .container {
padding: 10px 2em;
}

www.costumizeme.com

19,391 Views
Message 17 of 56
Report

Hello, really love your website. Is this a weebly template your using? Highley customized from the looks of it. Just curious what you started with. Not at all to copy by no means, just looking at the diffefent avenues of design, thats all. Great job by the way. 

13,524 Views
Message 17 of 56
Report

Re: previous comments, I searched for #main-wrap .container in main.less and reduced the last padding from 5 to 3 (all the others were set to 3) and this worked perfectly. Thanks

6,206 Views
Message 17 of 56
Report

I am using Birdseye 2 Portfolio Themefound the css in Global-less (Line 175) where the container padding was 60px 20px. 

I changed the top padding from 60 to 6px so I could use a small text element as a hyperlinked banner image "caption" sitting close under the banner. Then just added spacers to push back out the top padding on the rest of my sections.

It's still not working so well in mobile view.  www.kangaroomatters.org

Now I need to find out how to add the og: tag to my banner image so it is the image shared in on social media pages, and not an image further down the page.

5,563 Views
Message 17 of 56
Report

This fixed it for me - thanks 

4,496 Views
Message 17 of 56
Report

This worked for me, thanks!

2,717 Views
Message 17 of 56
Report

I added that code in the SEO but that did not work for me.  

5,604 Views
Message 17 of 56
Report

Sadly, didn't do anything that I can see... and it wanted me to save the theme after. Ugh, this is so frustrating! Just want to make the Sections shorter! Thanks! Smiley Happy

5,016 Views
Message 17 of 56
Report

Hi,

Would you care sharing - running in to the same problem...

Thanks in advance

11,338 Views
Message 18 of 56
Report

If anyone's still having problems with this, please reply to this comment and I'll guide you to where you need to alter the CSS.

9,599 Views
Message 52 of 56
Report

Would love some help on reducing the minimum size!

7,592 Views
Message 52 of 56
Report

I'm still running into this problem? Can anyone post the solution? I've tried changing code all over the place with no luck!

7,582 Views
Message 52 of 56
Report
Square

Best Answer

Try adding this to Settings > SEO > Header Code:

<style>
.wsite-section-content > .container
{
	padding:10px !important;
}
</style>
14,272 Views
Message 52 of 56
Report
This thread has been archived and locked. Please start a new thread if you would like to continue the conversation.