I have an DOCX template with one variable that I replace by an HTML table. The variable is centered at the DOCX document:
------------------------------------------
| {MY_TABLE} |
| |
------------------------------------------
After I run $docx->replaceVariableByHTML('HTML', 'block', $myTable) and generate the DOCX document the table is not center aligned. I also tried with no luck:
- Add "align=center" to table.
- Wrap the table with "<center>" tag.
- Wrap the table with "<div style="width:100%; text-align: center;>"
So, what am I doing wrong? How can I achieve HTML table centering?
Thank u!