Replies: 3   Views: 3135
Table background color
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 - 08:46


I would like to set the background color of a table. Is this possible?


Posted by clombard  · 11-04-2013 - 12:13

You can directly assign a background on your Docx.

Posted by c_h_r_i_s  · 11-04-2013 - 12:13

How can I do this? Adding a background in the parameters doesn't seem to work:

$paramsTable = array(
'border' => 'single',
'border_sz' => 20,
'background' => '#00FF00'