Jaxel Well-known member Apr 27, 2018 #1 HTML anchor links put the anchor at the top of the viewport. But if you are using a sticky header, it ends up being behind the header. How does XF2 rectify this?
HTML anchor links put the anchor at the top of the viewport. But if you are using a sticky header, it ends up being behind the header. How does XF2 rectify this?
Chris D XenForo developer Staff member Apr 27, 2018 #2 Anchors shouldn’t relate to the element you want to snap to. Instead look at how we use u-anchorTarget elements.
Anchors shouldn’t relate to the element you want to snap to. Instead look at how we use u-anchorTarget elements.
Jaxel Well-known member Apr 27, 2018 #3 Chris D said: Anchors shouldn’t relate to the element you want to snap to. Instead look at how we use u-anchorTarget elements. Click to expand... I dont understand. How do I jump to those anchors?
Chris D said: Anchors shouldn’t relate to the element you want to snap to. Instead look at how we use u-anchorTarget elements. Click to expand... I dont understand. How do I jump to those anchors?
Chris D XenForo developer Staff member Apr 27, 2018 #4 Like any other anchor. You give them an ID e.g. post-1234 and the links which jump to those just have #post-1234 appended to them.
Like any other anchor. You give them an ID e.g. post-1234 and the links which jump to those just have #post-1234 appended to them.