Jump to content

How to remove top & bottom padding for a single page after Header & Footer have been removed?

Recommended Posts

I am basically building a landing page and had to remove both header and navigation bar as well as footer. But after removing it (with a custom CSS code for a single page) I was then left with blank space on top and bottom. I'd like to remove this space. Please help 😇

 

 

Link to comment
13 hours ago, RX12 said:

Site URL is: https://www.alchemyofliving.co.uk/new-cover-page-3

And code I used for a single page is: 

<style type="text/css">
.Header-inner, 
.Footer,
.tweak-mobile-bar-top-fixed .Mobile-bar--top {
    display: none!important;
}
</style>

Use new code

<style>
.Header-inner, .Footer, .tweak-mobile-bar-top-fixed .Mobile-bar--top {
    display: none!important;
}
  section.Main-content {
    padding-top: 10px;
    padding-bottom: 10px;
}  
</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

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.