Often there is a problem with fixed-positioned headers and anchors on a page: navigation pushes the anchor position underneath the heading. Recently I learned about a CSS3 only solution (doesn't require JavaScript): the :target pseudo-selector can be used, e.g.
Code: Select all
:target {padding-top: 50px}