Jump to content

Fixed header! HELP!

Recommended Posts

  • Replies 5
  • Created
  • Last Reply

I see you fixed this?

I see you used position: fixed

but you can also position: sticky, I think it will better 😂

header.Header.Header--top {
    position: sticky;
    position: -webkit-sticky;
    top: 0;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
  • 2 weeks later...

So I did as you suggested:

header.Header.Header--top {
      z-index: 9998;
      position: sticky;
    position: -webkit-sticky;
    top: 0;
       background-color: hsl(26, 36%, 92%);
}

But now I am getting a white stripe below the header and above the banner image.  All images have the following:

.image-block
{
  width:100%;    
  padding-top:0 !important;  
  padding-left:0 !important;
  padding-right:0 !important;
}

I can't seem to work out where the white stripe is coming from as the image is right at the top of the page.

Any ideas?

 

Link to comment

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.