<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet type='text/xsl' href='docs-1.7.xsl'?>
<entries><entry type='method' name="scrollTop" return="Integer">
  <signature>
    <added>1.2.6</added>
  </signature>
  <desc>Get the current vertical position of the scroll bar for the first element in the set of matched elements.</desc>
  <longdesc><p>The vertical scroll position is the same as the number of pixels that are hidden from view above the scrollable area. If the scroll bar is at the very top, or if the element is not scrollable, this number will be <code>0</code>.</p></longdesc>
  <example>
    <desc>Get the scrollTop of a paragraph.</desc>
    <code><![CDATA[var p = $("p:first");
$("p:last").text( "scrollTop:" + p.scrollTop() );

]]></code>
    <css><![CDATA[
  p { margin:10px;padding:5px;border:2px solid #666; }
  ]]></css>
      <html><![CDATA[<p>Hello</p><p></p>]]></html>
  </example>
<category name="CSS"/>
<category name="Offset"/>
<category name="Style Properties"/>
<category name="Version 1.2.6"/>
</entry><entry type='method' name="scrollTop" return="jQuery">
  <signature>
    <added>1.2.6</added>
    <argument name="value" type="Number">
      <desc>An integer indicating the new position to set the scroll bar to.</desc>
    </argument>
  </signature>
  <desc>Set the current vertical position of the scroll bar for each of the set of matched elements.</desc>
  <longdesc><p>The vertical scroll position is the same as the number of pixels that are hidden from view above the scrollable area. Setting the <code>scrollTop</code> positions the vertical scroll of each matched element.</p></longdesc>
  <example>
    <desc>Set the scrollTop of a div.</desc>
    <code><![CDATA[$("div.demo").scrollTop(300);
]]></code>
  <css><![CDATA[
div.demo {
background:#CCCCCC none repeat scroll 0 0;
border:3px solid #666666;
margin:5px;
padding:5px;
position:relative;
width:200px;
height:100px;
overflow:auto;
}
  p { margin:10px;padding:5px;border:2px solid #666;width:1000px;height:1000px; }
  ]]></css>
    <html><![CDATA[<div class="demo"><h1>lalala</h1><p>Hello</p></div>]]></html>
  </example>
<category name="CSS"/>
<category name="Offset"/>
<category name="Style Properties"/>
<category name="Version 1.2.6"/>
</entry></entries>