title: $(window).innerHeight() - "height of certain div by id"
body: <p>sorry, I really am not a javascript-expert. Maybe someone can help me achieve this. Ich have a full-height div, which I define with this code</p>
  
  <pre><code>    $(function(){
        $('#foxfix-&lt;?php echo $i ?&gt;').css({ height: $(window).innerHeight() - 40 });
        $(window).resize(function(){
          $('#foxfix-&lt;?php echo $i ?&gt;').css({ height: $(window).innerHeight() - 40 });
        });
      });
  </code></pre>
  
  <p>The "40px" give space to of a fixed-bottom div.</p>
  
  <p>My problem is: the fixed bottom div (id="example") has a dynamic height because of the entered text. </p>
  
  <p><strong>How can I get the height of the div (id="example") and combine it with my code on the top to get something like $(window).innerHeight() - "height of div (id="example")"?</strong> </p>
  
  <p>Thank you. </p>