Jump to content

Decreasing Section Padding Squarespace 7.1

Go to solution Solved by tuanphan,

Recommended Posts

18 hours ago, ElizabethM said:

Dear all, 

I would like to reduce all the the space between sections in my website. 

Is there any option ? 

 

Many thanks

If SS 7.1, use this CSS

article .content-wrapper {
	padding-top: 5px !important;
	padding-bottom: 5px !important;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 2 weeks later...
6 hours ago, alimach said:

I'm trying to change the amount of padding between my top menu and my work links but it seems impossible.

My site is www.machworld.net and here is a screenshot with the css code I was trying to use.

 

Screen Shot 2021-10-10 at 11.37.03 AM.png

Add to Design > Custom CSS

.portfolio-hover-items {
    justify-content: flex-start !important;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
1 hour ago, tuanphan said:

Add to Design > Custom CSS

.portfolio-hover-items {
    justify-content: flex-start !important;
}

 

Thanks for this. Unfortunately when I add this code, the hover states don't follow along, they're in the same position as they were before. Is there any other way to adjust the vertical spacing?

Link to comment
On 10/11/2021 at 9:24 AM, alimach said:

Thanks for this. Unfortunately when I add this code, the hover states don't follow along, they're in the same position as they were before. Is there any other way to adjust the vertical spacing?

Try this new code

[data-section-id="60cfa8c99cd4cf6a758ac40e"] {
    min-height: unset !important;
    height: 50vh !important;
}

.portfolio-hover-backgrounds {
    align-items: flex-end;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 2 weeks later...
  • 3 weeks later...

@failbetter

It appears you have some poorly formed HTML in your page which has caused the parser to produce all kinds of funkiness.

1357171432_ScreenShot2021-11-12at9_20_33AM.thumb.png.227a18e9cf17dbba5ad83af0aedc7c2d.png

I suspect you have some extra closing </div> in your marquee code block.

Before we can help with any spacing issues you'll need to get that issue taken care of.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment

@creedon 

 

Hi, Thanks for taking a look - Yes it was me messing around with grid and it not working very well..forget that page.  The same thing is happening to a marquee on another page (bottom of page) 

I literally want it the size of the text so its just like a bar across the page.

www.sucoca.com/about  

PW: chocolate

Link to comment
On 11/13/2021 at 4:41 PM, creedon said:

This page appears to be having the same issue.

400046789_ScreenShot2021-11-13at8_30_56AM.png.2fddfdf077766e58ecd771708753480b.png

Yeah... I have no idea why that is i have even deleted the page and redone it the same thing is happening.  I suspect is the custom code for the marquee that i put in a code block. I just don't know how to do a marquee properly - some people have suggested using a scroll instead? My marquee is also starting at the page margin... 🤨

Or it could be a plugin I have for split sections.....???

Link to comment
2 hours ago, failbetter said:

I suspect is the custom code for the marquee that i put in a code block.

The first thing you could do is remove the code block, make a copy of the code somewhere. Then see if that takes care of the funky formatting. It may not be apparent from looking at the rendered page. If you know how to use the Inspector you can examine the code of the page and see if it looks wrong. If not, let us know and we can take a look at the page again to see if the issue has cleared. At this point we should be able to determine if it was the marquee code and move on from there.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment
4 hours ago, creedon said:

The first thing you could do is remove the code block, make a copy of the code somewhere. Then see if that takes care of the funky formatting. It may not be apparent from looking at the rendered page. If you know how to use the Inspector you can examine the code of the page and see if it looks wrong. If not, let us know and we can take a look at the page again to see if the issue has cleared. At this point we should be able to determine if it was the marquee code and move on from there.

Right - I've done that and I've looked at the inspector. Looks better...

Link to comment
19 minutes ago, failbetter said:

Right - I've done that and I've looked at the inspector. Looks better...

Yes it does. You can post your marquee code and we can take a look at it to see if we can see the problem.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment

@creedon. Thanks for looking again.  

So in the code block it's this

<div class="scroll">VISIT SUCOCA ✱ VISIT SUCOCA ✱ VISIT SUCOCA ✱ VISIT SUCOCA ✱ VISIT SUCOCA ✱ VISIT SUCOCA ✱ VISIT SUCOCA ✱ VISIT SUCOCA ✱ VISIT SUCOCA ✱ </div>

and in the css its this:  


.scroll{
  color:#E3DFD7;
  font-family:'Didot';
  background-color:black;
overflow: hidden!important;
 position: relative!important;
  display:flex;
 -moz-transform:translateX(100%);
 -webkit-transform:translateX(100%);  
 transform:translateX(100%);
 -moz-animation: scroll 20s linear infinite;
 -webkit-animation: scroll 20s linear infinite;
  animation: scroll 20s linear infinite;}
@-moz-keyframes scroll {
 0%   { -moz-transform: translateX(100%); }
 100% { -moz-transform: translateX(-100%); }
}

@-webkit-keyframes scroll  {
 0%   { -webkit-transform: translateX(100%); }
 100% { -webkit-transform: translateX(-100%); }
}

#page {overflow-x:hidden}

 

Link to comment

@failbetter

I'm stumped. I see nothing odd about that code. The div is about as simple as you can get. Certainly nothing that would cause the failure in rendering we were seeing.

The only thing I can suggest would be to put the code back in and see if the issue returns.

Oh and the CSS you put in Design > Custom CSS?

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment
  • 2 months later...

@creedon Hello, sorry if this has been sorted out somewhere else but I'm struggling with this.

I have various section types on a page (Image, gallery 2 col, gallery 3 col etc.)

Within the gallery  you can set the distance between the images (11 px)

I would like the distance between each section to be similar.

page I'm working on is https://kale-sturgeon-gymm.squarespace.com/work/georgiaraes

site is open.

Thanks

 

Link to comment
On 1/18/2022 at 4:36 AM, Spotvin said:

@creedon Hello, sorry if this has been sorted out somewhere else but I'm struggling with this.

I have various section types on a page (Image, gallery 2 col, gallery 3 col etc.)

Within the gallery  you can set the distance between the images (11 px)

I would like the distance between each section to be similar.

page I'm working on is https://kale-sturgeon-gymm.squarespace.com/work/georgiaraes

site is open.

Thanks

 

Try adding to Design > Custom CSS

body#item-61e1ccff048c5667e33a3d17 {
article .content-wrapper {
    padding-top: 11px !important;
    padding-bottom: 11px !important;
}
.gallery-grid.gallery-grid--layout-grid {
    padding-top: 0px !important;
    padding-bottom: 0px !important;
}
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
8 hours ago, Spotvin said:

@tuanphan Thanks! I was able to get it to work on one page. How do I get it to work on other "work" pages. I'm not sure where you found that ID from.

This is the page it's working on

https://www.spotvin.com/work/bunch

Not working 

https://www.spotvin.com/work/georgiaraes

Edit another page >> Add a Code Block (anywhere) >> Paste this code > Then save & reload the site

<style>
  article .content-wrapper {
    padding-top: 11px !important;
    padding-bottom: 11px !important;
}
.gallery-grid.gallery-grid--layout-grid {
    padding-top: 0px !important;
    padding-bottom: 0px !important;
}
</style>

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
13 hours ago, tuanphan said:

Edit another page >> Add a Code Block (anywhere) >> Paste this code > Then save & reload the site

<style>
  article .content-wrapper {
    padding-top: 11px !important;
    padding-bottom: 11px !important;
}
.gallery-grid.gallery-grid--layout-grid {
    padding-top: 0px !important;
    padding-bottom: 0px !important;
}
</style>

 

Thank you! @tuanphan

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.