Thanks for the reply, Roland.  Sorry about not including an example
right off.  

Here's the table that does what I'm talking about.  It's verbatim: no
names have been changed; there are no innocent to protect.  The current
version has no borders around the columns, but when I did it was just '
border-style="solid" border-color="#000066" ' around columns 1 and 2.


Thanks again!

Rod




     <fo:table keep-together="always" table-layout="fixed"
width="125mm">
       <fo:table-column column-number="1" column-width="20mm" />
       <fo:table-column column-number="2" column-width="10mm" />
       <fo:table-column column-number="3" column-width="19mm" />
       <fo:table-column column-number="4" column-width="19mm" />
       <fo:table-column column-number="5" column-width="19mm" />
       <fo:table-column column-number="6" column-width="19mm" />
       <fo:table-column column-number="7" column-width="19mm" />
       <fo:table-body border-right-style="solid"
border-right-color="#000066"
                      border-left-style="solid"
border-left-color="#000066"
                      border-top-style="solid"
border-top-color="#000066"
                      border-bottom-style="solid"
border-bottom-color="#000066" >

         <fo:table-row padding="0pt" height="6mm" display-align="center"
keep-with-next="always" background-color="#000066"
keep-with-previous="always">
           <fo:table-cell padding="1pt"><fo:block color="white"
text-align="center" font-family="Helvetica"
font-size="8pt">Theme</fo:block></fo:table-cell>
           <fo:table-cell padding="1pt"><fo:block color="white"
text-align="center" font-family="Helvetica"
font-size="8pt">Score</fo:block></fo:table-cell>
           <fo:table-cell padding="1pt"
number-columns-spanned="5"><fo:block color="white" text-align="center"
font-family="Helvetica" font-size="8pt">Level of
Interest</fo:block></fo:table-cell>
         </fo:table-row>

         <fo:table-row height="5mm" display-align="center"
keep-with-next="always" background-color="#3333ff"
keep-with-previous="always">
           <fo:table-cell padding="0pt"
background-color="white"><fo:block></fo:block></fo:table-cell>
           <fo:table-cell padding="0pt" background-color="white"
border-left-style="solid"
border-left-color="#000066"><fo:block></fo:block></fo:table-cell>
           <fo:table-cell padding="0pt" border-left-style="solid"
border-left-color="#000066"><fo:block color="white" text-align="center"
font-family="Helvetica" font-size="8pt">very
low</fo:block></fo:table-cell>
           <fo:table-cell padding="0pt"><fo:block color="white"
text-align="center" font-family="Helvetica"
font-size="8pt">low</fo:block></fo:table-cell>
           <fo:table-cell padding="0pt"><fo:block color="white"
text-align="center" font-family="Helvetica"
font-size="8pt">average</fo:block></fo:table-cell>
           <fo:table-cell padding="0pt"><fo:block color="white"
text-align="center" font-family="Helvetica"
font-size="8pt">high</fo:block></fo:table-cell>
           <fo:table-cell padding="0pt"><fo:block color="white"
text-align="center" font-family="Helvetica" font-size="8pt">very
high</fo:block></fo:table-cell>
         </fo:table-row>

         <fo:table-row padding="0pt" height="10mm"
display-align="center" keep-with-next="always" background-color="white"
keep-with-previous="always">
           <fo:table-cell padding="0pt" display-align="center">
                <fo:block text-align="center">
            <fo:external-graphic
src="http://www.testingroom.com/images/interestinventory/dots/r_lg.gif";
content-width="8mm" width="8mm" scaling="uniform" />
            </fo:block></fo:table-cell>
           <fo:table-cell padding="0pt" border-left-style="solid"
border-left-width="1pt" border-left-color="#000066"><fo:block
color="black" text-align="center" font-family="Helvetica"
font-size="9pt">9</fo:block></fo:table-cell>
           <fo:table-cell padding="0pt" number-columns-spanned="5"
border-left-style="solid" border-left-color="#000066"
padding-left="1pt"><fo:block>
            <fo:external-graphic
src="http://www.testingroom.com/images/interestinventory/bars/9.gif";
width="95mm" content-width="95mm" />
                </fo:block></fo:table-cell>           
         </fo:table-row>

         <fo:table-row padding="0pt" height="10mm"
display-align="center" keep-with-next="always" background-color="white"
keep-with-previous="always">
           <fo:table-cell padding="0pt" display-align="center">
                <fo:block text-align="center">
            <fo:external-graphic
src="http://www.testingroom.com/images/interestinventory/dots/a_lg.gif";
content-width="8mm" width="8mm" scaling="uniform" />
            </fo:block></fo:table-cell>
           <fo:table-cell padding="0pt" border-left-style="solid"
border-left-width="1pt" border-left-color="#000066"><fo:block
color="black" text-align="center" font-family="Helvetica"
font-size="9pt">8</fo:block></fo:table-cell>
           <fo:table-cell padding="0pt" number-columns-spanned="5"
border-left-style="solid" border-left-color="#000066"
padding-left="1pt"><fo:block>
            <fo:external-graphic
src="http://www.testingroom.com/images/interestinventory/bars/8.gif";
width="95mm" content-width="95mm" />
                </fo:block></fo:table-cell>           
         </fo:table-row>

         <fo:table-row padding="0pt" height="10mm"
display-align="center" keep-with-next="always" background-color="white"
keep-with-previous="always">
           <fo:table-cell padding="0pt" display-align="center">
                <fo:block text-align="center">
            <fo:external-graphic
src="http://www.testingroom.com/images/interestinventory/dots/i_lg.gif";
content-width="8mm" width="8mm" scaling="uniform" />
            </fo:block></fo:table-cell>
           <fo:table-cell padding="0pt" border-left-style="solid"
border-left-width="1pt" border-left-color="#000066"><fo:block
color="black" text-align="center" font-family="Helvetica"
font-size="9pt">6</fo:block></fo:table-cell>
           <fo:table-cell padding="0pt" number-columns-spanned="5"
border-left-style="solid" border-left-color="#000066"
padding-left="1pt"><fo:block>
            <fo:external-graphic
src="http://www.testingroom.com/images/interestinventory/bars/6.gif";
width="95mm" content-width="95mm" />
                </fo:block></fo:table-cell>           
         </fo:table-row>

         <fo:table-row padding="0pt" height="10mm"
display-align="center" keep-with-next="always" background-color="white"
keep-with-previous="always">
           <fo:table-cell padding="0pt" display-align="center">
                <fo:block text-align="center">
            <fo:external-graphic
src="http://www.testingroom.com/images/interestinventory/dots/s_lg.gif";
content-width="8mm" width="8mm" scaling="uniform" />
            </fo:block></fo:table-cell>
           <fo:table-cell padding="0pt" border-left-style="solid"
border-left-width="1pt" border-left-color="#000066"><fo:block
color="black" text-align="center" font-family="Helvetica"
font-size="9pt">5</fo:block></fo:table-cell>
           <fo:table-cell padding="0pt" number-columns-spanned="5"
border-left-style="solid" border-left-color="#000066"
padding-left="1pt"><fo:block>
            <fo:external-graphic
src="http://www.testingroom.com/images/interestinventory/bars/5.gif";
width="95mm" content-width="95mm" />
                </fo:block></fo:table-cell>           
         </fo:table-row>

         <fo:table-row padding="0pt" height="10mm"
display-align="center" keep-with-next="always" background-color="white"
keep-with-previous="always">
           <fo:table-cell padding="0pt" display-align="center">
                <fo:block text-align="center">
            <fo:external-graphic
src="http://www.testingroom.com/images/interestinventory/dots/e_lg.gif";
content-width="8mm" width="8mm" scaling="uniform" />
            </fo:block></fo:table-cell>
           <fo:table-cell padding="0pt" border-left-style="solid"
border-left-width="1pt" border-left-color="#000066"><fo:block
color="black" text-align="center" font-family="Helvetica"
font-size="9pt">3</fo:block></fo:table-cell>
           <fo:table-cell padding="0pt" number-columns-spanned="5"
border-left-style="solid" border-left-color="#000066"
padding-left="1pt"><fo:block>
            <fo:external-graphic
src="http://www.testingroom.com/images/interestinventory/bars/3.gif";
width="95mm" content-width="95mm" />
                </fo:block></fo:table-cell>           
         </fo:table-row>

         <fo:table-row padding="0pt" height="10mm"
display-align="center" keep-with-next="always" background-color="white"
keep-with-previous="always">
           <fo:table-cell padding="0pt" display-align="center">
                <fo:block text-align="center">
            <fo:external-graphic
src="http://www.testingroom.com/images/interestinventory/dots/c_lg.gif";
content-width="8mm" width="8mm" scaling="uniform" />
            </fo:block></fo:table-cell>
           <fo:table-cell padding="0pt" border-left-style="solid"
border-left-width="1pt" border-left-color="#000066"><fo:block
color="black" text-align="center" font-family="Helvetica"
font-size="9pt">2</fo:block></fo:table-cell>
           <fo:table-cell padding="0pt" number-columns-spanned="5"
border-left-style="solid" border-left-color="#000066"
padding-left="1pt"><fo:block>
            <fo:external-graphic
src="http://www.testingroom.com/images/interestinventory/bars/2.gif";
width="95mm" content-width="95mm" />
                </fo:block></fo:table-cell>           
         </fo:table-row>

       </fo:table-body>

     </fo:table>




-----Original Message-----
From: Roland Neilands [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 31, 2002 5:11 PM
To: [EMAIL PROTECTED]
Subject: RE: Problems with borders in tables.


Rod,

> I'd like to create a table with vertical borders along some columns, 
> but no horizontal borders.
>
> When I specify the border at the table-column level, i.e.
>
> <fo:table-column column-number="1" column-width="20mm" 
> border-style="solid" />
>
> The border gets 'covered up' or perhaps overridden by the table cells.

> That is, I can't see it in the table, but I know it's there, since if 
> I increase the width to, say, 3pt, I can see it sticking out over and
> under the table itself.  But nothing within.
>
> If I specify the border at the table-cell level, i.e.
>
> <fo:table-cell border-left-style="solid" border-right-style="solid">
>
> then the border shows up, but I get little gaps between the borders on

> each cell.  I presume that the rendering engine draws the top and 
> bottom borders over and under the side borders, so the gaps I'm
> seeing reflect
> the absence of the top and bottom border of the cell.
>
> I've played with many combinations of padding, setting it to 0, 1pt, 
> and 3pt for the column and cell level.
>
> I'm stumped!  Any suggestions?

Yes, show us a small example.

This works fine for me, ie no gaps, using pretty much the code you've
described. I put the borders on the right side of cells only, padding on
cells only & specified <fo:table border-collapse="separate" > if that
matters.

Cheers,
Roland.






Reply via email to