{"id":54783,"date":"2018-06-15T22:08:49","date_gmt":"2018-06-15T20:08:49","guid":{"rendered":"https:\/\/samuelchopard.ch\/wiki\/?p=54783"},"modified":"2019-03-18T14:29:17","modified_gmt":"2019-03-18T13:29:17","slug":"how-to-adjust-anchor-tag-link-using-css","status":"publish","type":"post","link":"https:\/\/samuelchopard.ch\/wiki\/library\/how-to-adjust-anchor-tag-link-using-css\/","title":{"rendered":"How to adjust anchor tag link using CSS"},"content":{"rendered":"<p><!--more--><\/p>\n<p>Add the following in the custom CSS:<\/p>\n<pre class=\"EnlighterJSRAW\">:target:before {\ncontent: \"\";\ndisplay: block;\nheight: 90px; \/* fixed header height*\/\nmargin: -90px 0 0; \/* negative fixed header height *\/\n}\n<\/pre>\n<p>Change the value (90px) as needed (check fixed menu height).<\/p>\n<p>Apart from the value mentioned above, no need to modify anything else (such as the selector).<\/p>\n<p>Source: <a target=\"_blank\" href=\"https:\/\/www.itsupportguides.com\/knowledge-base\/tech-tips-tricks\/how-to-offset-anchor-tag-link-using-css\/\">https:\/\/www.itsupportguides.com\/knowledge-base\/tech-tips-tricks\/how-to-offset-anchor-tag-link-using-css\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"Add the following in the custom CSS: :target:before { content: \"\"; display: block; height: 90px; \/* fixed header height*\/ margin: [...]","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[32,69,160],"class_list":["post-54783","post","type-post","status-publish","format-standard","hentry","category-htmlcss","tag-anchor","tag-css","tag-link"],"_links":{"self":[{"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/posts\/54783","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/comments?post=54783"}],"version-history":[{"count":1,"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/posts\/54783\/revisions"}],"predecessor-version":[{"id":54837,"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/posts\/54783\/revisions\/54837"}],"wp:attachment":[{"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/media?parent=54783"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/categories?post=54783"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/tags?post=54783"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}