{"action":"created","issue":{"url":"https://api.github.com/repos/joomla/joomla-websites/issues/322","repository_url":"https://api.github.com/repos/joomla/joomla-websites","labels_url":"https://api.github.com/repos/joomla/joomla-websites/issues/322/labels{/name}","comments_url":"https://api.github.com/repos/joomla/joomla-websites/issues/322/comments","events_url":"https://api.github.com/repos/joomla/joomla-websites/issues/322/events","html_url":"https://github.com/joomla/joomla-websites/issues/322","id":153133405,"number":322,"title":"[japi] api.joomla.org anchor links too low - result hidden","user":{"login":"photodude","id":10253980,"avatar_url":"https://avatars.githubusercontent.com/u/10253980?v=3","gravatar_id":"","url":"https://api.github.com/users/photodude","html_url":"https://github.com/photodude","followers_url":"https://api.github.com/users/photodude/followers","following_url":"https://api.github.com/users/photodude/following{/other_user}","gists_url":"https://api.github.com/users/photodude/gists{/gist_id}","starred_url":"https://api.github.com/users/photodude/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/photodude/subscriptions","organizations_url":"https://api.github.com/users/photodude/orgs","repos_url":"https://api.github.com/users/photodude/repos","events_url":"https://api.github.com/users/photodude/events{/privacy}","received_events_url":"https://api.github.com/users/photodude/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/joomla/joomla-websites/labels/CSS","name":"CSS","color":"fbca04"}],"state":"closed","locked":false,"assignee":{"login":"mbabker","id":368545,"avatar_url":"https://avatars.githubusercontent.com/u/368545?v=3","gravatar_id":"","url":"https://api.github.com/users/mbabker","html_url":"https://github.com/mbabker","followers_url":"https://api.github.com/users/mbabker/followers","following_url":"https://api.github.com/users/mbabker/following{/other_user}","gists_url":"https://api.github.com/users/mbabker/gists{/gist_id}","starred_url":"https://api.github.com/users/mbabker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbabker/subscriptions","organizations_url":"https://api.github.com/users/mbabker/orgs","repos_url":"https://api.github.com/users/mbabker/repos","events_url":"https://api.github.com/users/mbabker/events{/privacy}","received_events_url":"https://api.github.com/users/mbabker/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2016-05-04T22:53:09Z","updated_at":"2016-05-05T13:25:43Z","closed_at":"2016-05-05T13:15:49Z","body":"#### Please describe the problem or your issue\r\nAnchor links to class methods are too low, often the method is hidden in the fixed header when you click on the anchor link.\r\n\r\nExample (click any method get the same result)\r\nhttps://api.joomla.org/cms-3/classes/JCacheController.html#method_getInstance\r\n\r\nBasically, the fixed headers cause on offset that needs to be dealt with in the CSS\r\n\r\n#### Proposed CSS Fix\r\nJust add the CSS3 `:target:before` selector to the page. This will apply to all the anchors automatically.\r\n\r\n```css\r\n:target:before{\r\n\tdisplay: block;\r\n\tcontent: \" \";\r\n\tmargin-top: -90px;\r\n\theight: 90px;\r\n\tvisibility: hidden;\r\n}\r\n```\r\nI calculated the header to be 89px and chose 90px for simplicity. increasing or decreasing the value will allow fine tuning the correction.\r\n"},"comment":{"url":"https://api.github.com/repos/joomla/joomla-websites/issues/comments/217153938","html_url":"https://github.com/joomla/joomla-websites/issues/322#issuecomment-217153938","issue_url":"https://api.github.com/repos/joomla/joomla-websites/issues/322","id":217153938,"user":{"login":"photodude","id":10253980,"avatar_url":"https://avatars.githubusercontent.com/u/10253980?v=3","gravatar_id":"","url":"https://api.github.com/users/photodude","html_url":"https://github.com/photodude","followers_url":"https://api.github.com/users/photodude/followers","following_url":"https://api.github.com/users/photodude/following{/other_user}","gists_url":"https://api.github.com/users/photodude/gists{/gist_id}","starred_url":"https://api.github.com/users/photodude/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/photodude/subscriptions","organizations_url":"https://api.github.com/users/photodude/orgs","repos_url":"https://api.github.com/users/photodude/repos","events_url":"https://api.github.com/users/photodude/events{/privacy}","received_events_url":"https://api.github.com/users/photodude/received_events","type":"User","site_admin":false},"created_at":"2016-05-05T13:25:43Z","updated_at":"2016-05-05T13:25:43Z","body":"Thanks @MATsxm and @mbabker "}}