Not signed in (Sign In)

Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.

Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    • CommentAuthorH3llGhost
    • CommentTimeJul 22nd 2010
     
    Hello,

    I tried to generate with mPDF a table on a DIN A4 page, but the table cells are shrinked together. 
    I have tried different things to get the cells in the right size. In my browser it works fine, but only in my browser.
    You can see here: 
    http://stackoverflow.com/questions/3306312/table-attribute-width-is-ignored

    Perhaps is there anybody out there with a suggestion, what can I do.
    • CommentAuthorIanBack
    • CommentTimeJul 22nd 2010
     
    Please read the topic in the on-line manual: http://mpdf1.com/manual/index.php?tid=319
    • CommentAuthorH3llGhost
    • CommentTimeJul 23rd 2010
     
    I have read it.
    But it don't help me.
    I use for the correct view in my Browser min-width and additional for mPDF width.
    But it ignores it.
    • CommentAuthorniftyhawk
    • CommentTimeJul 25th 2010
     
    No matter what you do, the table cell will shrink to fit the largest cell in one page. It would be nice to have an option to not shrink the table cells and let the table cell continue on multiple pages, if the content is very large.. (Consider a bullted list of 200 points).

    Ian,
    Can we have a fix for this?

    Thanks
    • CommentAuthorIanBack
    • CommentTimeJul 25th 2010
     
    It would require a totally different way of writing the tables (not a simple 'fix'). I have developed mPDF on the same lines a HTML+CSS i.e. tables are recommended for displaying data only - not for layout. There are options to use "float" on block elements which may work for some.
    • CommentAuthorH3llGhost
    • CommentTimeJul 26th 2010 edited
     
    I don't wanna use the table for Layout, but I want to get a table with fixed size.
    A normal style="width: XXXpx;" in a td will be completly ignored.

    The work-around is to use div with the width.

    But the height is ignored by div and by td it is too big ie. I use the dpi 300 and a height of 57px and in Photoshop 176px.
    Why?

    My document size A4L with 300dpi has following pixel: 2480 x 3508
    • CommentAuthorH3llGhost
    • CommentTimeAug 16th 2010
     
    The system is really tricky.
    When you use absolute length td accepts width-style.