Hi all,

I'm having trouble getting images horizontally
centered in a table.  I've followed the FAQ and used
the proportional-column-width(1) method to get it
centered.  The problem is that the images are of a
random size.  The FAQ has the middle column set at a
fixed width, which causes my images to be scaled down
to fit the fixed width or for the narrow images they
become left-justified within the middle column.  When
I remove the column width or set the width to 100% in
the center column, it simply divides the area into 3
even width columns.  

Is there a way I can get the middle column to be a
variable width, one that changes depending on the
width of each images?

Thanks all,
JasonV


Here is a sample of the table that I'd like to have
the image centered.

<fo:table width="100%" table-layout="fixed">
        <fo:table-column
column-width="proportional-column-width(1)"/>
        <fo:table-column />
        <fo:table-column
column-width="proportional-column-width(1)"/>
        <fo:table-body>
                <fo:table-row>
                        <fo:table-cell/>
                        <fo:table-cell display-align="center">
                                <fo:block>
                                        <fo:external-graphic height="2in"
src="{$imagePath}/{$imageName}"/>
                                </fo:block>
                        </fo:table-cell>
                        <fo:table-cell/>
                </fo:table-row>
        </fo:table-body>
</fo:table>




__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to