Replies: 2   Views: 3719
Html table added with replacetemplatevariablebyhtml ignores margin-left
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by ludalex  · 02-01-2014 - 12:38

Hello, what I'm trying to do is really simple: I want to add some left spacing to the right to a HTML table inserted in a Word document.

This is how I initialize the table:

<table style="border-collapse:collapse; font-family: "Arial"; font-size: 10px; text-align: center; margin-left: 20em;">


..but it's not working.

Hoping for a prompt response, I thank you in advance.

Posted by jorgelj  · 03-01-2014 - 09:28


You need to install and enable Tidy for PHP.