title: Set line-height of div through jQuery?
body: <p>There are 2 divs: Div1 and Div2.</p>
  
  <p>I have a function that determines Div1's height and sets Div2's height to match it if Div2's height is smaller.</p>
  
  <p>I am trying to make that function also set Div2's lineheight equal to Div1's height if Div2's height is smaller.</p>
  
  <p>This is very tricky to me.</p>
  
  <p>My attempt:</p>
  
  <pre><code>$(document).ready(function() {
  
      function setDiv2Height(){
  
          var Div1Height = $('#Div1').height();
          var Div2Height = $('#Div2').height();
  
          if (Div2Height &lt; Div1Height) {    
              $('#Div2').height($('#Div1').height()); 
  
              $('#Div2').css("line-height", ($('#Div1').height())));
          }
  
      }
  
  });
  </code></pre>