Soldato
i currently use jquery to smoothly jump page anchors, however there is a slight issue in that my header section with a height of approx 100px, which is fixed at the top of the page, lays over the top of where the page scrolls to, cover the top 100px.
below is the code I use
i was hoping that offset() could have parameters to set is 100px lower, but it doesn't appear to work how i had hoped.
any suggestion as to how I can solve this?
many thanks
below is the code I use
JavaScript:
$(".section_gallery a").click(function() {
event.preventDefault();
$('html, body').animate({
scrollTop: $("#section_gallery").offset().top
}, 400);
});
i was hoping that offset() could have parameters to set is 100px lower, but it doesn't appear to work how i had hoped.
any suggestion as to how I can solve this?
many thanks