Jump to content

"white" space at bottom of my page, can't seem to get rid of it

Go to solution Solved by tuanphan,

Recommended Posts

Posted

I have used a block of a custom code to remove the header and footer for my homepage, but there is this orange space at the bottom I can't seem to get rid of by adjusting margins or site width. I've tried a few custom codes but nothing seems to work.

Screenshot 2023-11-27 at 4.16.47 PM.png

  • Replies 8
  • Views 1.7k
  • Created
  • Last Reply

Top Posters In This Topic

Posted
8 hours ago, NorahAdams said:

Use this new code

<style>
  body.homepage section:first-child {
    height: 100vh !important;
}
body.homepage {
    overflow: hidden;
}
  .header, #footer-sections {
      display: none !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!)

Posted
19 hours ago, tuanphan said:

Use this new code

<style>
  body.homepage section:first-child {
    height: 100vh !important;
}
body.homepage {
    overflow: hidden;
}
  .header, #footer-sections {
      display: none !important;
}
</style> 

 

it says syntax error on the line with "<style>"? also I have this problem for every page on the website, does this address every page or just the homepage?

  • Solution
Posted
On 12/3/2023 at 5:03 AM, NorahAdams said:

it says syntax error on the line with "<style>"? also I have this problem for every page on the website, does this address every page or just the homepage?

The code, you need to add to Home Header Code Injection

If you want to add to Custom CSS, use this new code

 body.homepage section:first-child {
    height: 100vh !important;
}
body.homepage {
    overflow: hidden;
}

Can you share link to some pages which you have problems with?

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!)

Posted
16 hours ago, tuanphan said:

If you want to add to Custom CSS, use this new code

 body.homepage section:first-child {
    height: 100vh !important;
}
body.homepage {
    overflow: hidden;
}

I tried this and it didn't seem to work still? It still has the orange line at the bottom when I scroll down. This problem occurs on every page on my website

Screenshot 2023-12-04 at 12.52.07 PM.png

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.