W3C home > Mailing lists > Public > www-xsl-fo@w3.org > July 2006

Re: Table borders with background colors

From: Mukul Gandhi <gandhi.mukul@gmail.com>
Date: Tue, 25 Jul 2006 21:37:02 +0530
Message-ID: <7870f82e0607250907t7b0607a6o30d219820c0df5d3@mail.gmail.com>
To: chris6 <christoph.boesch@ubs.com>
Cc: www-xsl-fo@w3.org

On 7/25/06, chris6 (sent by Nabble.com) <lists@nabble.com> wrote:
> Hi
>
> Did anybody encounter problems defining tables with backgroundcolors and
> borders?
> If a border attribute is definedon a cell, a border will be drawn arround
> it. If I only set the border-bottom attribute, nothing will be drawn. e.g.
> defining a table as following:
> --------------------------------------------------------------------------------------------------------------------
>                                <fo:table-body>
>                                        <fo:table-row>
>                                        <fo:table-cell border-bottom-style="solid"
> border-bottom-color="gray" border-bottom-width="0.2pt"
> background-color="blue">
>                                           <fo:block>test</fo:block>
>                                        </fo:table-cell>
>                                        <fo:table-row>..........
>
> --------------------------------------------------------------------------------------------------------------------
>
> This will code will result as shown in this image (Viewed and Printed with
> the Acrobat Reader):
>
> http://www.nabble.com/user-files/110/xsl-fo_table_acrobat.jpg
>
> All underline borders are missing. Any Idea how to get this working?
>
> Regards
> Chris

This looks like a rendering problem. I am getting the same result as
you, with FOP 0.20.5.

But if you increase the value of border-bottom-width, all the borders
will show. Try making it for e.g. border-bottom-width="2pt", and
you'll see the borders.

Regards,
Mukul

http://gandhimukul.tripod.com
Received on Tuesday, 25 July 2006 16:07:12 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:06:13 GMT