Forum


Replies: 1   Views: 2520
Cell wrapping with html table
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 robkallen  · 10-08-2017 - 18:01

How do I turn off the "Automatically resize to fit contents" Table Option, or the "Wrap text" Cell Option when inserting an HTML table into a Word doc?

I've tried setting a "white-space: nowrap" style and the "nowrap" attribute on the <td> but it doesn't seem to work.

Thanks for your help.

Posted by admin  · 11-08-2017 - 06:29

Hello,

What version and license of phpdocx are you using?

If you are using embedHTML you can use a custom Word style or DOCXCustomizer. Or use the addTable method.

Regards.