View Full Version : dompdf css not working properly

02-01-2012, 11:18 AM

i using dompdf to html to pdf

hear im getting very confusing that alignment center is not working properly

<table width="734" border="1" align="center">
<tr align="center">
<th colspan="3" scope="col" align="center"><?php print $tname ?></th>


hear after pdf generate tname variable not going to center

how do i solve this problem....

plzzz help me to center this text

sample code

02-01-2012, 02:24 PM
Here's a list of supported attributes: http://code.google.com/p/dompdf/wiki/CSSCompatibility

Try to use style="text-align: center;" instead and see if that works.