Forum


Replies: 1   Views: 685
<td> height not working
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  · 20-08-2018 - 12:05

Edited by admin · 15-10-2019 - 11:46

Hello,

MS Word allows setting height to rows (tr), not to cells. You can check it opening MS Word, adding a table and then changing the properties.

phpdocx supports setting height to rows as well, you just need to add the height property to the row. The library adds this property using "atLeast" values; if you need to set "exact" values, please use the addTable method or DOCXCustomizer. You can also customize the generateTrPr method in HTML2WordML.php.

Since the release of phpdocx 9.5, the easiest approach to accomplish this task is using HTML Extended.

Regards.