Replies: 1   Views: 570
Format images in embedhtml
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  · 13-05-2021 - 19:11


If you are setting strictWordStyles as true then most CSS styles are not applied (

strictWordStyles  bool    If true ignores almost all CSS styles and uses the styles set via the wordStyles option (see next).

You'd need to use width and height attributes instead of CSS styles. Or use HTML Extended and CSS Extended:, but this feature is available only in Premium licenses.

On you can read more information about working with img tags and the available styles and attributes.