Forum


Replies: 7   Views: 3940
Addhtml line spacing
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 c_h_r_i_s  · 07-06-2012 - 15:30

Hi,

When I do the following:

[code]
$html = '
<table border="0" style="width:158mm;">
<td style="padding:0px; background-color:#008080; text-align:left; padding:0pt 2pt;">
<span style="font-size:12pt; color:#FFFFFF; font-weight:bold; font-family:Tahoma,Arial;">SUMMARY AND ASSESSMENT CONCLUSION</span>
</td>
</table>';

$docx->addHTML($html);

$docx->setDefaultFont('Tahoma');

$docx->createDocxAndDownload('includes/reports/TEST');
[/code]

I get a table with some text in it but the text has a line spacing of 10pt below it. How can I remove the line spacing?

Thanks
Chris