Ugne Posted December 5, 2020 Posted December 5, 2020 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; } } screen-capture.webm
Beyondspace Posted December 5, 2020 Posted December 5, 2020 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; } } screen-capture.webm 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
Beyondspace Posted December 5, 2020 Posted December 5, 2020 9 minutes ago, Ugne said: The password is: staywarm update this header style .Header { position: fixed !important; z-index: 1000; width: 100%; top: 0; } 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
Ugne Posted December 5, 2020 Author Posted December 5, 2020 @bangank36 thank you so much! solved it 😄
Recommended Posts
Archived
This topic is now archived and is closed to further replies.