This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

large spaces between table 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

Systems Administrator - PLANET NETCOM - anth@staff.pnc.com.au
-------------------------------------------------------------------
"Bill Oddie, Bill Oddie, rub your beard all over my body"
Reading soccer supporters parody Madonna's 'Erotica' in tribute to   
celebrity fan and bearded former star of The Goodies.


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]