title: How to set div height to td height?
body: <p>I have a </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.divHeight {
      height: 40px;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;table&gt;
    &lt;tr&gt;
      &lt;td&gt;
        &lt;a href="#deal/{{id}}"&gt;
          &lt;div class="text-ellipsis divHeight" style="width:10em"&gt;
            &lt;span class="text-cap"&gt;{{name}}&lt;/span&gt;
          &lt;/div&gt;
        &lt;/a&gt;
      &lt;/td&gt;
    &lt;/tr&gt;
  &lt;/table&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>In CSS:</p>
  
  <pre><code>.divHeight{
      height:40px;
  }
  </code></pre>
  
  <p>I want to set div height as td height and my td has padding:10px,so if I am clicking on that padding area my right click functionality is not working.
  So, now I want to implement right click on <code>&lt;tr&gt;</code> so if I click on anywhere on the tr, td it has to give right-click and it has prompt me to "open in new tab" option. Any help?</p>
  
  <p>Thanks.</p>