tags:

views:

50

answers:

0

Centering text is easy enough, but what if I want to align an entire block of text (i.e., text shows up left-align, but block/box is dead center)...

HTML would go like this: '<html><body><center><table width="90%"><tr><td>'.$html.'</td></tr></table></center></body></html>'

but I cannot get tcpdf to center align the box using either writeHTML() or writeHTMLCell()

How do you center align an entire block of text in tcpdf?