[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

large spaces between table cells

Subject: large spaces between table cells
From: "\"Anth Courtney\"" <anth@xxxxxxxxxxxxxxxx>
Date: Fri, 24 May 2002 00:10:52 +1000
spaces between cells
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.