You just need to plan the positioning of your anchors differently to account for the height of the header.
Say you want to scroll to here using the highlighted anchor:
Code:
<div><a name="myname" id="myname"></a>Some Content You want to scroll to</div>
And say your fixed header is 200px tall. Then instead of placing the anchor there, place it about 225px earlier, example:
Code:
<a name="myname" id="myname"></a>
<div>Some content that fills about 225px worth of vertical space</div>
<div>Some Content You want to scroll to</div>
Or, and I like this method better, put all your anchors in a container div:
Code:
<div class="anchors"><a name="myname" id="myname"></a></div>
<div>Some Content You want to scroll to</div>
And in your stylesheet put:
Code:
.anchors {
font=size: 1px;
height: 1px;
overflow: hidden;
position: relative;
top: -250px;
}
The browser cache may need to be cleared and/or the page refreshed to see changes.
If you want more help, please include a link to the page on your site that contains the problematic code so we can check it out.
Bookmarks