Re: Table header colors.
Can't understand how it can be done, can you please provide a snippet. Chris Bowditch [EMAIL PROTECTED] 06/14/2004 05:08 PM Please respond to fop-user To: [EMAIL PROTECTED] cc: Subject: Re: Table header colors. Amita Rathore wrote: I had already tried this, but doing so the padding goes off. Oh, I see. You might be able to use margin instead, if you dont have borders on the cells, then the spacing effect between text should appear the same. Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Table header colors.
Amita Rathore wrote: Now I am trying to create a table , the header of the table contains 4 columns. The text for first column is as small as a single word , while for second it wraps across two lines. The problem is that I am trying to put a background color for the header cells with a padding of 2pts. Are you defining the background color on the cell on the block within the cell? Please provide a snippet of your XSL-FO. snip/ Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Table header colors.
I had already tried this, but doing so the padding goes off. Chris Bowditch [EMAIL PROTECTED] 06/14/2004 04:45 PM Please respond to fop-user To: [EMAIL PROTECTED] cc: Subject: Re: Table header colors. Amita Rathore wrote: Here goes the snippet: fo:table table-layout=fixed fo:table-column column-width=15mm/ fo:table-column column-width=15mm/ fo:table-column column-width=28mm/ fo:table-body fo:table-row fo:table-cell padding=2pt text-align=left fo:block font-size=10pt background-color=#ffDate/fo:block This is your problem. You need to specify background-color on the cell instead of the block. That way the whole cell will have the background color, and not just the block, whose length may not fill up the row height, as youve discovered. E.g. fo:table-cell padding=2pt text-align=left background-color=#fffo:block font-size=10ptDate/fo:block/fo:table-cell snip/ Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Table header colors.
Amita Rathore wrote: I had already tried this, but doing so the padding goes off. Oh, I see. You might be able to use margin instead, if you dont have borders on the cells, then the spacing effect between text should appear the same. Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]