title: Converting width from percentage to pixels
body: <p>I have a table inside a <code>&lt;div&gt;</code>:</p>
  
  <pre><code>&lt;div id="fixeddiv"&gt;
      &lt;table id="fixedtable"&gt;
          &lt;tr class="firstrow"&gt;
              &lt;td class="td11"&gt;&lt;/td&gt;
              &lt;td class="td12"&gt;&lt;/td&gt;
              &lt;td class="td13"&gt;&lt;/td&gt;
          &lt;/tr&gt;
  
          &lt;tr class="secondrow"&gt;
              &lt;td class="td21" style="width:10%"&gt;&lt;/td&gt;
              &lt;td class="td22" style="width:20%"&gt;&lt;/td&gt; 
              &lt;td class="td23" style="width:70%"&gt;&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/table&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p><strong>CSS:</strong></p>
  
  <pre class="lang-css prettyprint-override"><code>#fixeddiv
  {
      overflow:auto;
      margin:0px;
      padding:0px;
      position: relative;
      text-align:left;
      width: 48%;
  }
  
  #fixedtable
  {
      background-color: White;
      border-spacing:0px;
      cursor: pointer;
      width: 100%;
      height: 100%;
      font-family: Calibri !important;
      color: Black;
      font-size: 14px;
  }
  
  .firstrow
  {
      position: absolute;
      margin: 0px;
      left: 0;
      top: 0;
      background: url(../Content/Images/header.jpg) repeat-x center top;
      color: White;
      font-weight: bold;
      text-align: center;
  
  }
  #fixedtable tr td
  {
      padding: 5px !important;
      border: 1px solid #FFFFFF;
      text-align: center;
  }
  </code></pre>
  
  <p>I am calculating the width of <code>td21</code> with <code>$('.td21').width()</code> and assigning the width to <code>td11</code> like <code>$('td11').width($('.td21').width())</code>. </p>
  
  <p>The problem is that the widths applying are not same, they vary by <code>1px</code> and I could not find how this <code>1px</code> difference occur. The <code>.td21</code> width is <code>1px</code> greater than <code>.td11</code>. </p>
  
  <p>Can any one please help me to find the solution?</p>