Replies: 2   Views: 176
Align center image
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 admin  · 24-06-2020 - 12:06


Images can be aligned using a container that sets the align to be applied, for example using a paragraph or a table:

$html = '<p style="text-align: center;"><img src="image.png"></p>';