Jump to content

How to remove the gap between the top of the page and the sticky header on Brine/Foster?

Recommended Posts

Posted

Site URL: http://www.woollyhoody.com

Hi, I've used a CSS code to make the top header sticky but there is a gap between the top of the page and the header when I scroll. How do I make the gap disappear?

I've used the following code to make the header sticky:

.Header {
  position: fixed!important;
  z-index: 1000;
  width: 100%;
}

@media screen and (min-width: 641px) {
  .Index section:first-child:not(.Index-gallery), .Main--page, .Intro, .Main {
    padding-top: 81px;
  }
  .Intro + .Main {
    padding-top: 0px;
  }
}

  • Replies 4
  • Views 3.2k
  • Created
  • Last Reply
Posted
43 minutes ago, Ugne said:

Site URL: http://www.woollyhoody.com

Hi, I've used the following code to make the top header sticky but there is a gap between the top of the page and the header when I scroll. How do I make the gap disappear?

I've used the following code to make the header sticky:


.Header {
  position: fixed!important;
  z-index: 1000;
  width: 100%;
}

@media screen and (min-width: 641px) {
  .Index section:first-child:not(.Index-gallery), .Main--page, .Intro, .Main {
    padding-top: 81px;
  }
  .Intro + .Main {
    padding-top: 0px;
  }
}

Please provide your site password

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Pinch/Zoom images, videos - PDFs Lightbox - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> 🤖 Ask me anything

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.