I have a long vertical website created using a Wordpress vertical scrolling 'parallax' type theme. All the content areas are created via 'posts' - with the post titles being the H1s.
I've created a sticky menu at the top of the page calling anchor points I've set within the post titles in attempt to have the most accuracy with positioning. Eg below.
<a name="ebook"></a>Ebook
This didn't work as now it scrolled to the point displaying only half of the content as my sticky menu is covering the title area where I set the anchor. So it scrolls down with the menu covering half of the content.
So, I thought what if I assigned a class to my anchors and margined it up about 200px to have the anchor scroll to the content just right. This didn't work either. Eg below
<a name="ebook" class="anchor"></a>Ebook
Could anyone guide me with a solution to this? I need to position my anchors about 200px above my Wordpress posts / content areas, for the content to appear nicely.
(I'm already using smoothscroll.js
to create a smooth transitions between the anchors, and would rather not look at implementing an additional or different JS / I'm looking for a CSS solution. )