Scroll inside a container
content.animate({scrollTop: content.scrollTop() + $("#" + target).offset().top - content.offset().top}, 800);