...

View Full Version : dompdf css not working properly



coolumanga
02-01-2012, 10:18 AM
hi

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>
</tr>

</table>

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

KuriosJon
02-01-2012, 01: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.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum