Jump to content

How do I remove the spacing between the site header and the blog overview?

Go to solution Solved by jojok1ng,

Recommended Posts

Posted (edited)

Hi everybody,

I want to remove the white are between my site header and the blog gallery below. I have tried several different ways and even looked at the .html code (see first screenshot) but I can't figure out how to target it in a css script. I can change the gap when I edit the .html code (see second screenshot) but can't apply these changes when I try to write it in css.

Can some please tell me what I'm missing here and how I can apply these changes through a custom css code?

Thanks in advance for your help!

Best regards

Johannes

my url is: https://www.jkp1ctures.com/

the password to my site is: sony

first screenshot.png

second screenshot.png

Edited by jojok1ng
site url got removed when uploading a screenshot
Posted

Can you add you website URL to your question? Thanks

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

📈 SEO Space (Referral link)
Ⓜ️ 
Will Myers' Plugins & Tutorials (Referral link)
 🔌 Ghost Squarespace Plugins (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

Posted

Try adding this to Custom CSS:

section[data-section-id="655196d6a5ddcc3e229f1077"] {
  .page-section.vertical-alignment--middle:not(.content-collection):not(.gallery-section):not(.user-items-list-section):not(.editmode-changing-rowcount).section-height--medium>.content-wrapper {
    padding-top: 0vmax !important;
}

 

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

📈 SEO Space (Referral link)
Ⓜ️ 
Will Myers' Plugins & Tutorials (Referral link)
 🔌 Ghost Squarespace Plugins (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

Posted

Hi Ziggy, 
thanks for your response and your attempt in helping me! 
Sadly the code doesn't work (see attached screenshot) even though the code makes sense in my opinion!

Do you have any ideas what could be wrong with it?

Best regards
Johannes

Screenshot 2023-12-05 120149.png

  • Solution
Posted

I found the solution and it was right before my eyes the whole time!

I had the wrong setting in my section height. My setting was M but changing it to custom and then 1 gave me the exact result that I was looking for (see attached screenshot)!

squarespace-gap-between-header-and-gallery-fix.jpg

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.