Forum


Replies: 4   Views: 4298
Text align html to docx
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 andrewk_777  · 23-05-2018 - 14:57

i use <p align="center"> tag to align text

$html = '<p align="center">text</p>';

then i replace variable in the document using:

$docx->replaceVariableByHTML($section, 'inline', $html);

i get 0 effect for alignment.

should i use a different tag?