title: How to center html table?
body: <p>Trying to create proper PDF document, using PHP and TCPDF. </p>
  
  <p>Can you help me, how can I use writeHTML function to create and center table, in TCPDF?</p>
  
  <p>Tryed with:</p>
  
  <pre><code> $html = '
  
   &lt;div style="margin-left: auto; margin-right: auto; width: 50%"&gt;
    &lt;table border="1" width="200" align="center"&gt;&lt;tr&gt;&lt;td&gt;&lt;b&gt;Invoice number: '.$this-&gt;xInvoiceNumber.'&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
    &lt;br /&gt;
    &lt;table border="1" width="200" align="center"&gt;&lt;tr&gt;&lt;td&gt;'.$this-&gt;xClient.'&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
    &lt;br /&gt;
   &lt;/div&gt;
  </code></pre>
  
  <p>... but no luck.</p>