SyntaxFix
Write A Post
Hire A Developer
Questions
use the following code to apply some margin
$(".button").click(function() { $('html, body').animate({ scrollTop: $(".scrolltothis").offset().top + 50; }, 500); });
See this ans: Scroll down to div + a certain margin