-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Avoid link target covered by fixed-position header #16
Comments
Hi @selwyntcy - it's not something I'd considered. I tend not to use fixed headers. |
Thanks @andykirk. Here is one example (sorry it's in Chinese) http://dsccc.inno-solution.com/en/publication/newsletter/issue44/article The class "footnote" in the footnote marker anchor tag and the footnote li tag is added in the main plugin.js for my css (not applied on the url above, but it works): a.footnote:before { |
Some quick hacking:
Note |
Wow, thanks for the code! It now works on all browsers except Firefox (both 39 or 41.0a2 (2015-08-05)). I'm now using
On Firefox, the |
Not having much luck fixing it satisfactorily. FF just seems to behave differently. |
When using with a Drupal theme with a fixed-position header at the top, the target footnote is covered by the header when clicking the footnote marker link on the body text, and vice versa.
I'm able to use the trick at https://css-tricks.com/hash-tag-links-padding/ on the footnote marker on the body text, but I can't make it with the target footnote.
Does anyone have similar problems? How do you solve it?
The text was updated successfully, but these errors were encountered: