Jquery height() not working as expected.http://forums.asp.net/t/1773312.aspx/1?Jquery+height+not+working+as+expected+Fri, 24 Feb 2012 08:03:44 -050017733124848766http://forums.asp.net/p/1773312/4848766.aspx/1?Jquery+height+not+working+as+expected+Jquery height() not working as expected. <p>I want to set &nbsp;first TD height of every TR of one table to first TD height of Every TR of another table. &nbsp;I written the logic and everything works fine.</p> <p>But, &nbsp;When i look at Layout of the TD, its height mentioned ad 50 but below code return 49. Because of that 1 px misalignment is there in the tables. I even tried TD.css(&quot;height)&quot;; But no use. Why its returning 1px less. Any idea???????.... Please help.</p> <pre class="prettyprint">var otherRowTD; otherRowTD = $(&quot;#rightTable&quot;).find('tr:eq(' &#43; rowNr &#43; ')').find('td:first'); alert(otherRow.height());</pre> <p>&nbsp;</p> 2012-02-24T07:50:53-05:004848783http://forums.asp.net/p/1773312/4848783.aspx/1?Re+Jquery+height+not+working+as+expected+Re: Jquery height() not working as expected. <p>Hi,</p> <p>This may be due to in one table the cell has porder top or bottom and in one there is no border. This is just a guess.</p> 2012-02-24T08:02:47-05:004848786http://forums.asp.net/p/1773312/4848786.aspx/1?Re+Jquery+height+not+working+as+expected+Re: Jquery height() not working as expected. <p>Dear friend,</p> <p>&nbsp; &nbsp; &nbsp;Height method caluculates the height but without the <strong>padding</strong> and the <strong>margin,</strong> make sure that these values are <strong>0</strong></p> 2012-02-24T08:03:44-05:00