SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast
    Join Date
    Dec 2007
    Posts
    59
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    TCPDF - How to center HTML table?

    Hi all,

    How can I use writeHTML to create and center table, in TCPDF?

    Also, is it possible to have table with double border?


    Tnx in adv!!!

  2. #2
    SitePoint Addict mmanders's Avatar
    Join Date
    Jul 2006
    Location
    Edinburgh, Scotland
    Posts
    358
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Could you not create HTML that has a parent div with 100% width, and then a table inside that div with a defined width less than that of the div, and set margin: 0 auto. This _should_ centre the table. Not too sure about the double border I'm afraid.

  3. #3
    SitePoint Evangelist smftre's Avatar
    Join Date
    Dec 2008
    Location
    London
    Posts
    436
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    style="border:double"
    Statvoo.com The Website Traffic Monitor
    The best way to monitor traffic to your sites for free!


    Web Development London UK We make web 3.0 applications

  4. #4
    SitePoint Enthusiast
    Join Date
    Dec 2007
    Posts
    59
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    style="border:double" for tcpdf? no, it does not work...


Bookmarks

Posting Permissions

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