Jump to content

Trying to remove padding between last section and footer

Go to solution Solved by Ziggy,

Recommended Posts

Hi! 

I'm trying to remove the spacing between an image in the last section of my page and the footer. 
I've tried some css variants, but can't seem to make them work. Anyone able to help me out? 

 

Password Lindvirke2023

Skjermbilde 2023-10-30 kl. 11.14.40.png

Link to comment

You see to have a blank section at the top of the footer with just one row. You also have a single blank row in the last section below the image (if you want that image to touch the footer).

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

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
Spark Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment

Yes, due to the content on the right side, there was a blank row below the image. I've changed that for now, but the single blank row at the top of the footer I can't remove, it says there's only one. To have that rounded shape on the footer I need to keep the row above the footer, so I was looking for a way to remove the padding with CSS. Is there no way to achieve this? 

Link to comment

I've updated it now so that it works, but I lose the rounded corners on the top of the footer sadly. 

Another thing I wondered, now that I'm here - is there an easy way to define different images to be shown for desktop and mobile? 

I need one image for desktop and another for mobile, and tried CSS for that too, but it seemed to fail. 

Link to comment
7 minutes ago, Fasett said:

I've updated it now so that it works, but I lose the rounded corners on the top of the footer sadly. 

You can add the divider style to the last section on the page. The downside here is that you will have to do this to every last section, your method got around that until it didn't work for another design feature.

9 minutes ago, Fasett said:

I need one image for desktop and another for mobile, and tried CSS for that too, but it seemed to fail. 

Yes and no; you can do this but it requires adding two images in two blocks and then using CSS to show/hide each one on desktop/mobile. It's not too difficult, but it can be fiddly to set up and manage.

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

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
Spark Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment

I seem to have made it work now, thanks for the pointers 🙂

One thing that still doesn't do what it should is the bottom photo on desktop. If I resize the window pre breakpoint to mobile, the lower image is larger than the top one. Can you tell why that is and offer any resolution? 

 

Link to comment
  • Solution
1 hour ago, Fasett said:

One thing that still doesn't do what it should is the bottom photo on desktop. If I resize the window pre breakpoint to mobile, the lower image is larger than the top one. Can you tell why that is and offer any resolution? 

The images are constrained in size by the height of the rows, and although they take up the same number of rows, when you narrow the width, the text next to the second image takes up more rows and stretches each row, therefore making the image taller and wider, I would suggest making the text block as large as possible to account for the number of lines increasing.

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

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
Spark Plugin (Referral link) 

 Did I help? Buy me a coffee?

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.