offset anchor reference
Hi! is there any way to set an offset reference so when I click on the link I will be positioned on the top of section (just over the title) and not in the middle?
I've tried to add in css customization this code but it seems not working:
:target:before { content:""; display:block; height:90px; /* fixed header height*/ margin:-90px 0 0; /* negative fixed header height */ }
Here is my link:
https://hack100.inaf.it/index.php/key-topics_and_invited_speakers
Thanks.
Comments
Hello,
Unfortunately, there is no setting to set the offset for the anchor links.
The only workaround is to add top padding to the element with the ID.
Best regards
in which way? I've tried but it seems not working
Edit the column, and in the Advanced tab set top padding to for example 100px.
Thanks
Great! it works! thanks.