hello friends I have a link to an anchor in my html
<a href="#anchor">anchor</a>
And this goes to a div in my html
<div id="anchor" class="container-full">
</div>
My goals is to make it scroll a 100px lower, this is what I've tried with css but nothing happens, unfortunately.
#anchor{
padding-top: -100px;
margin-top: 100px;
}
EDIT added js
jQuery(".nav li a").click(function(e) {
e.preventDefault();
$id = jQuery(this).attr("data-id");
jQuery("a.clicked").removeClass("clicked");
jQuery(this).addClass("clicked");
jQuery('html, body').animate({
scrollTop: jQuery("#"+$id).offset().top
}, 1000);
});