Center a Table with TCPDF

1

I have to print a table with TCPDF, but I want the media to be displayed (centered), I can not use css (because the library does not interpret them) and the $ tcp- > multicell () does not help me either , since the location on my page varies depending on the content. Has anyone been able to solve this issue?.

$pagina.='<table border = "0" style="">
<tr>
    <td style="text-align: center;" > </td>
</tr>
</table>';
    
asked by fcapra 24.05.2017 в 21:21
source

1 answer

0

You could use this solution:

<table>
<tr>
<td style="width:25%"></td>
<td style="width:50%"><table><tr><td>Your content</td></tr></table></td>
<td style="width:25%"></td>
</tr>
</table>

Greetings,

    
answered by 24.05.2017 в 23:52