I see what your problem is here, what you'd ideally have is an offset that these elements have so they do not sit underneath the header.
If you're happy to use jQuery and a plugin or two, this is a very easy problem to solve.
There is a jQuery plugin I've used a few times called
LocalScroll, it's an offshoot of the
ScrollTo plugin which it requires to work. If you were to use these plugins it becomes a simple matter of calling a few lines of JavaScript and you'll have smooth scrolling *and* the ability to offset the header height to the scroll amount.
Code javascript:
//include the scripts (jQuery, ScrollTo and LocalScroll) before you call this of course
$(document).ready(function(){
$('#pub').localScroll({
offset: { top: -200 } //offset by the height of your header (give or take a few px, see what works for you)
});
});
Now you should be able to click your "local" (anchor) links and they will scroll nicely to the correct location.
Bookmarks