This is my code: http://jsfiddle.net/KCb5z/
The problem bit of code is here I think:
$(".nav").click(function (e) {
e.preventDefault();
var divId = $(this).attr('href');
$('html, body').animate({
scrollTop: $(divId).offset().top;
}, 500);}
});
I think I have done something wrong with my bracketing because it doesn't seem to scroll correctly or even allow the persistent header to remain persistent. Can anyone show me where I went wrong please?