jQuery one pagescrolling

jQuery one pagescrolling

Hi all ... I have created a menu. When I click on it it scroll down to see the specific div ... but how to stop on accurate place ... for example at the top line of the div .. or 20px under this line ... u know what I mean? I hope yes ... please help me ... thanks a lot 

... I download something but I am not sure if it is whole code 

  1. <script>
  2.             if ( ! window.console ) console = { log: function(){} };

  3.             // The actual plugin
  4.             $('.single-page-nav').singlePageNav({
  5.                 offset: $('.single-page-nav').outerHeight(),
  6.                 filter: ':not(.external)',
  7.                 updateHash: true,
  8.                 beforeStart: function() {
  9.                     console.log('begin scrolling');
  10.                 },
  11.                 onComplete: function() {
  12.                     console.log('done scrolling');
  13.                 }
  14.             });
  15.         </script>