Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Sep 2010
    Posts
    124
    Thanks
    6
    Thanked 0 Times in 0 Posts

    dompdf css not working properly

    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

  • #2
    Regular Coder
    Join Date
    Jan 2012
    Posts
    134
    Thanks
    0
    Thanked 32 Times in 32 Posts
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •