W3C home > Mailing lists > Public > www-xsl-fo@w3.org > October 2011

Table overflows block

From: Indrek Siitan <indrek.siitan@codeLab.ee>
Date: Tue, 25 Oct 2011 16:47:54 +0300
Message-Id: <48E7E172-1673-4AD3-B506-5F2134A87036@codeLab.ee>
To: www-xsl-fo@w3.org
Hi,

I have the following XSL:

<fo:block border-width="2pt" border-style="solid" border-color="black" space-before="0.4cm">
 <fo:table table-layout="fixed" width="100%">
   <fo:table-column column-width="7.5cm"/>
   <fo:table-column column-width="9.5cm"/>
   <fo:table-body>
     <fo:table-row keep-together.within-column="always">
       <fo:table-cell><fo:block font-size="9" font-weight="bold" text-align="center" background-color="#E8E6DC" padding-left="0.1cm" padding-after="0.1cm" padding-before="0.1cm" padding-right="0.1cm">Tasumine</fo:block></fo:table-cell>
       <fo:table-cell><fo:block font-size="9" font-weight="bold" text-align="center" background-color="#E8E6DC" padding-left="0.1cm" padding-after="0.1cm" padding-before="0.1cm" padding-right="0.1cm">Poliisi maksumus</fo:block></fo:table-cell>
     </fo:table-row>
   </fo:table-body>
 </fo:table>
</fo:block>

(Note: omitted the XSL for content rows as they're irrelevant)

The problem is that it outputs the table as follows:
http://tfr.cafe.ee/kama/xsl-fo-broken-table.png

Is there a way to fix it so the background color for the header row doesn't overflow over the outer border?


-- 
Indrek
Received on Tuesday, 25 October 2011 13:48:36 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 25 October 2011 13:48:37 GMT