title: Why can't I center align my <td> text?
body: <p>I'm trying to center the text in a dynamically produced <code>&lt;td&gt;</code></p>
  
  <p>I've tried all this possibilities and none of them work:</p>
  
  <pre><code>cell.innerHTML = "&lt;td align=\"center\" style=\"margin-left:auto;margin-right;auto;\"&gt;&amp;nbsp;&lt;/td&gt;";
  cell.innerHTML = "&lt;td align=\"center\" text-align=\"center\"&gt;aaaa&lt;/td&gt;";
  cell.innerHTML = "&lt;td style=\"text-align:center;\"&gt;aaaa&lt;/td&gt;";
  cell.innerHTML = "&lt;td align=\"center\" text-align=\"center\"&gt;aaaa&lt;/td&gt;";
  cell.innerHTML = "&lt;td align=\"center\"&gt;aaaa&lt;/td&gt;";
  cell.innerHTML = "&lt;td align=\"center\" style=\"text-align:center;\"&gt;aaaa&lt;/td&gt;";
  </code></pre>
  
  <p>Any idea of what am I missing? I can't think of more possibilities.</p>
  
  <p>Well, I finally managed to solve it by simple adding a row.align="center" to the row they are added afterwards, although I thought, that tds could be aligned individually... Anyway I don't need that this time.</p>