This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
large spaces between table cells
- From: "\"Anth Courtney\"" <anth at staff dot pnc dot com dot au>
- To: XSL-List at lists dot mulberrytech dot com
- Date: Fri, 24 May 2002 00:10:52 +1000
- Subject: [xsl] large spaces between table cells
- Reply-to: xsl-list at lists dot mulberrytech dot com
Hey guys,
Apologies in advance if this is a post with an obvious answer; while I'm
well versed in html, I'm only new to xml.
My problem is that I'm trying to create a table with two columns of
specified size each, and each has to contain a graphic. When I do this in
xsl, then while I get the graphics and the two columns that I require, I
also get a rather large space between the two columns, which I'm unsure how
to remove.
My code is
<fo:table>
<fo:table-column column-width="139mm"/>
<fo:table-column column-width="70mm"/>
<fo:table-body>
<fo:table-row>
<fo:table-cell>
<fo:block>
<fo:external-graphic content-height="auto" content-width="auto"
src="file:///usr/local/cms/xsl/fo/CreditCardsGraphic.gif"/>
</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block>
<fo:external-graphic content-height="auto" content-width="auto"
src="file:///usr/local/cms/xsl/fo/bpay.gif"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
I'm using 209mm in width (an a4 page size). What also seems to happen is
that if I have text or no content in the second cell, then the graphic in
the first cell sizes itself correctly. When I have a graphic in the second
cell, then the graphic in the first cell seems to slightly shrink itself
back. I'm assuming this is because of hte large white space that appears
between the two cells and the limitations of the page.
Are there any tags that I shoudl look at adding to this code block to
remove this white space? How can I make the two columns sit side by side
like a normal html table row would?
thanks in advance
cheers,
Anth
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list