title: Javascript: make two div same height
body: <p>Caveat: I'm not a developer. </p>
  
  <p>At <a href="http://freightplus.com/beta/" rel="nofollow noreferrer">this site</a>, I have an issue where a slider's height will not match the height of the div to the right of it:</p>
  
  <pre><code>&lt;div id="front-page-slide"&gt;
      &lt;div id="slider"&gt;[rev_slider alias="home"]&lt;/div&gt;
      &lt;div id="boxes"&gt;
          &lt;table width="459" border="0" cellspacing="0" cellpadding="0"&gt;
            &lt;tr&gt;
              &lt;td bgcolor="#8A0E02" style="color: #FFF; padding: 1em; font-size: 1em;"&gt;Freightplus know what they are doing. I was very satisfied with their work and will use them for any further freight needs. 
                &lt;br /&gt;
                &lt;br /&gt;
              -Customer 1&lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
              &lt;td&gt;&lt;iframe src="https://player.vimeo.com/video/43915936?title=0&amp;byline=0&amp;portrait=0" width="459" height="auto" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen&gt;&lt;/iframe&gt;&lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
              &lt;td&gt;&lt;img src="http://freightplus.com/beta/wp-content/uploads/2017/01/freight-plus-map.jpg" alt="Freight Plus" /&gt;&lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
              &lt;td&gt;&lt;img src="http://freightplus.com/beta/wp-content/uploads/2017/01/freight-plus2.jpg" alt="Freight Plus" /&gt;&lt;/td&gt;
            &lt;/tr&gt;
          &lt;/table&gt;
      &lt;/div&gt;.
  &lt;/div&gt;
  
  &lt;script type="text/javascript"&gt;
      var left=document.getElementById('slider').style.height;
      var right=document.getElementById('boxes').style.height;
      if(left&gt;right) {
          document.getElementById('boxes').style.height=left;
      }
      else {
          document.getElementById('slider').style.height=right;
      }
  &lt;/script&gt;
  </code></pre>
  
  <p>The above Javascript fires after the HTML code, but is not taking effect.</p>