BFGS Posted October 12, 2020 Share Posted October 12, 2020 Site URL: https://www.blackfishgoldstudios.com I've designed a single-page / scroll website with anchor links that jump to page content in the always-present mobile menu. These links are held in the header of each section. When selected from the menu, the page jumps past the selected header and into the section content. Is there a way to make the jump more precise? I've already tried adding a <span> above the header with the id placed therein. That did not alter the issue. Much appreciated in advance! AndreaDube and srobinsondesign 2 Link to comment
srobinsondesign Posted October 12, 2020 Share Posted October 12, 2020 Yes! This is something I am having an issue with too! Also, my anchor links don't seem to work on Chrome, but work on Firefox and Safari. Hoping someone can help us! Link to comment
AndreaDube Posted October 15, 2020 Share Posted October 15, 2020 (edited) Try this: I simply added the following CSS and it works perfectly: :target:before { content:""; display:block; height:120px; /* fixed header height*/ margin:-120px 0 0; /* negative fixed header height */ } Edited October 15, 2020 by AndreaDube oastone 1 Link to comment
Guest Posted May 12, 2021 Share Posted May 12, 2021 Hi! This solution does not work for me. Please help! https://berkshireic-cms.squarespace.com/clients-services-fees password: BIC2021 Pinned sticky header using Tuanphan's code: .Header.Header--top { position: sticky; position: -webkit-sticky; top: 0px; z-index: 1000; width: 100%; } Using this from the previous solution does not work for me: :target:before {content:"";display:block;height:120px; /* fixed header height*/margin:-120px 0 0; /* negative fixed header height */} Link to comment
tuanphan Posted May 14, 2021 Share Posted May 14, 2021 On 5/12/2021 at 10:21 PM, kcasey said: Hi! This solution does not work for me. Please help! https://berkshireic-cms.squarespace.com/clients-services-fees password: BIC2021 Pinned sticky header using Tuanphan's code: .Header.Header--top { position: sticky; position: -webkit-sticky; top: 0px; z-index: 1000; width: 100%; } Using this from the previous solution does not work for me: :target:before {content:"";display:block;height:120px; /* fixed header height*/margin:-120px 0 0; /* negative fixed header height */} Hi. Where is anchor links? 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
Guest Posted May 18, 2021 Share Posted May 18, 2021 Hi @tuanphan, they're in the index section highlighted in blue. Thanks! Link to comment
tuanphan Posted May 19, 2021 Share Posted May 19, 2021 13 hours ago, kcasey said: Hi @tuanphan, they're in the index section highlighted in blue. Thanks! You can disable sticky header, or add a space above anchor title 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
Guest Posted May 19, 2021 Share Posted May 19, 2021 Hi @tuanphan Do you mean it's either disable sticky or add space above title, making a bigger space between title and green line above? No option to keep spacing and sticky? Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment