Re: [css2xslfo-support] Problem with stupid table
Brought to you by:
wdonne
From: Grzegorz M. <cs...@wp...> - 2005-04-11 14:26:14
|
Andreas Jung wrote: > <html> > <body> > <table> > <tr> > <td>a</td> > <td>b</td> > </tr> > <td>c</td> > <td>d</td> > <tr> > </tr> > > </table> > > </body> > </html> FOP doesn't support "auto" size tables. You have to use fixed width. For example: <table> <colgroup span="3"> <col width="20mm"/> <col width="20mm"/> <col width="60mm"/> </colgroup> <tr> <td>a</td> <td>b</td> <td>c</td> </tr> </table> So every table in your html (or pdf) page must have fixed width. It looks like a problem now, but in future you'll see that it isn't as bad as it was at the beginning :) And, of course, you have to use other style on your table: table { width: 100%; table-layout: fixed; } And I preffer mm as unit, because Browsers (like IE) visualise pixel units in different style that Adobe Reader. Milimeters looks similar. Grzegorz Makosa |