RSS Feed/News What does XenForo use to create an offset for #target links to compensate for the fixed header?

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
24,673
Points
823

Reputation:

I am working on some custom pages with #target links within the page, currently in the form of a table of contents at the top of the page. The issue is, the targeted positions are all off by -45px due to the fixed header at the top of the page.

I see somehow this is not an issue for #target links within the XenForo forum (for instance post links). It appears this offset is already compensated for through existing script.

Where is this script and what do I need to do to have it active on a...

Read more

Continue reading...
 
Status
Not open for further replies.
Top