Using JQuery how do I get the vertical space above an element on the page?
<p>I have an element on a page about 150 pixels down the screen. This is different in different browsers so I want to auto scroll the page to the top of an element that is about 150 pixels down the page. How do I determine what the location of that element relative to the top of the page?</p>

<p>I am trying this but it isn't working. offset() is returning null.</p>

<pre><code>var positionOfLiveMapTop = $(mapElem).offset().top;
</code></pre>
