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="#9999ff">Date</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="#9999ff"><fo:block
font-size="10pt">Date</fo:block></fo:table-cell>

<snip/>

Chris



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to