Support Forum

Please note that this forum is only available to you in read only mode. In order to contribute to this conversation you will need to renew your subscription.

sticky menu versus text anchors

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

hi there

I was wondering if there is a solution for the following: I use the stick nav bar but now whenever I use anchors in a text, this piece of text is hidden behind the sticky nav.

Please see as an example: webinprogress.be/todoroff/nl/teksten/mystiek/111-grondslagen-en-doorwerking-van-de-religieuze-vrouwenbeweging-in-de-extatische-mystiek-en-new-age

At the very bottom there are anchors, if you click them, you see what I mean.

Thank you

luc
  • luc vande reyde's Avatar
  • luc vande reyde
  • 3 Month Basic
  • 78 posts
  • Karma: 0
The administrator has disabled public write access.
Hi Luc,

I will check with the developers and get back to you

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Great! Looking forward to it

luc
  • luc vande reyde's Avatar
  • luc vande reyde
  • 3 Month Basic
  • 78 posts
  • Karma: 0
The administrator has disabled public write access.
Hi Luc,

That page wont load for me actually.
There is a way to tweak the position if using the smoothscroll links, but direct anchors wont have any effect.
If I can see the page I may be able to help further.
Thanks!
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.
Hi Anthony, thank you for your reply.
Sorry, I'm experiencing some problems with the hosting company.
shoukd be online again, can you retry?

webinprogress.be/todoroff/nl/teksten/mystiek/111-grondslagen-en-doorwerking-van-de-religieuze-vrouwenbeweging-in-de-extatische-mystiek-en-new-age
  • luc vande reyde's Avatar
  • luc vande reyde
  • 3 Month Basic
  • 78 posts
  • Karma: 0
The administrator has disabled public write access.
Sorry for the delay - that page still doesnt load for me.
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.
Actually loaded now ... one sec
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.
Hi LUc,

This tutorial should help:
www.itsupportguides.com/tech-tips-tricks/how-to-offset-anchor-tag-link-using-css/

Just add the css they recommend to the custom.css of your theme.
Thanks
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.
Hi Anthony

thank you for your tip.

First off all, the link to the site has changed: it should load now:

todoroff.info/nl/teksten/mystiek/111-grondslagen-en-doorwerking-van-de-religieuze-vrouwenbeweging-in-de-extatische-mystiek-en-new-age

As you can see I added the css you recommended. It works but unfortunately it creats a margin gap in de text.
You can try by scrolling down and then click on an achor .. not a very nice result ...
  • luc vande reyde's Avatar
  • luc vande reyde
  • 3 Month Basic
  • 78 posts
  • Karma: 0
The administrator has disabled public write access.
Yes I think it assumes the anchor is attached to a heading tag. Can you change display: block to inline-block to see if that fixes it?

Thanks
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.
I see no changes with the inline-block.
perhaps I'm not doing it correct
I have the following in my css now:

:target:before {
content:"";
display: inline-block;
height:65px; /* fixed header height*/
margin-top:-20px; /* negative fixed header height */
}
  • luc vande reyde's Avatar
  • luc vande reyde
  • 3 Month Basic
  • 78 posts
  • Karma: 0
The administrator has disabled public write access.
Hi

Shouldn't this be

:target:before {
content:"";
display: inline-block;
height:65px; /* fixed header height*/
margin-top:-65px; /* negative fixed header height */
}

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
I'm affraid not

In this case the anchors are all hidden behind the sticky nav again ...

See also:

todoroff.info/nl/teksten/mystiek/111-grondslagen-en-doorwerking-van-de-religieuze-vrouwenbeweging-in-de-extatische-mystiek-en-new-age
  • luc vande reyde's Avatar
  • luc vande reyde
  • 3 Month Basic
  • 78 posts
  • Karma: 0
The administrator has disabled public write access.
ah ok the one I tested seemed to work

does it work for you if you increase

:target:before {
content:"";
display: inline-block;
height:85px; /* fixed header height*/
margin-top:-85px; /* negative fixed header height */
}
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
nope, if I use the same amount for the height and for the margin-top nothing changes.
  • luc vande reyde's Avatar
  • luc vande reyde
  • 3 Month Basic
  • 78 posts
  • Karma: 0
The administrator has disabled public write access.
odd as if I change it in the browser to 85px it seems to work for me on

todoroff.info/nl/teksten/mystiek/111-grondslagen-en-doorwerking-van-de-religieuze-vrouwenbeweging-in-de-extatische-mystiek-en-new-age#ftnref4

At the moment I still see 65px

Can you change it to 85px

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
I just changed it in the css
no change here ...
  • luc vande reyde's Avatar
  • luc vande reyde
  • 3 Month Basic
  • 78 posts
  • Karma: 0
The administrator has disabled public write access.
Hi

Just to check I'm doing this right - I'm clicking 1-4 at the bottom of the page?

It does work for me on these 4 foot notes

clicking.png


Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Can I also check which browser you are using? it is possible a different browser may render the font 1pt different

Also have you cleared your browser cache?

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
UPDATE: it seems to work in Safari and Chrome
not in Firefox though ...
  • luc vande reyde's Avatar
  • luc vande reyde
  • 3 Month Basic
  • 78 posts
  • Karma: 0
The administrator has disabled public write access.

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Happy Campers