title: CSS set div 'top' with jquery from div 'height'
body: <p>I have a template with lots of absolute positioning, now my main text div has a dynamic height and I need a dynamic footer which follows after this.</p>
  
  <p>I tried to set the top state of the footer div with the height value from the text div.</p>
  
  <pre><code> &lt;script type="text/javascript"&gt;
      $("#footer").top($("#text").height());
      &lt;/script&gt;
  </code></pre>
  
  <p>Unfortunately, Chrome Dev tools throws the error: </p>
  
  <blockquote>
    <p>Uncaught TypeError: Object [object Object] has no method 'top'
    (anonymous function)</p>
  </blockquote>
  
  <p>So any idea or help for my problem?</p>
  
  <p>Edit:</p>
  
  <p>So i tried </p>
  
  <pre><code> $('#footer').css('top', $('#text').outerHeight() + 'px');
  </code></pre>
  
  <p>and it works well, is it possible to add some px to this top value?</p>