Discussion:
Specifying table width in percentage
Suresh Koya
2006-05-24 13:54:48 UTC
Permalink
Hi,

I am using FOP 0.20.5. I am facing a problem creating table by specifying width in percentage. Even though I specify the width as 75% it takes the whole width of 100%. Could anyone let me know what I am missing here.

<fo:table table-layout="fixed" width="75%">
<fo:table-column column-width="proportional-column-width(1)"/>
<fo:table-column column-width="proportional-column-width(1)"/>
<fo:table-body>
<fo:table-row>
<fo:table-cell padding-after="3pt" padding-before="3pt" padding-end="3pt" padding-start="3pt">
<fo:block text-align="start">
<fo:basic-link color="blue" external-destination="http://localhost/io/">
<fo:external-graphic src="Loading Image..." border="0px solid"/>
</fo:basic-link>
</fo:block>
</fo:table-cell>
<fo:table-cell padding-after="3pt" padding-before="3pt" padding-end="3pt" padding-start="3pt">
<fo:block text-align="start">
<fo:block font-weight="bold" font-family="Times-Roman" space-after="18pt" keep-with-next="always" line-height="28pt" font-size="18pt" id="A10">
Best of Java IO</fo:block>
<fo:block/>
10/02/2002
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>


Regards,
Suresh


---------------------------------
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less.
Chris Bowditch
2006-05-24 14:51:01 UTC
Permalink
Post by Suresh Koya
Hi,
I am using FOP 0.20.5. I am facing a problem creating table by
specifying width in percentage. Even though I specify the width as 75%
it takes the whole width of 100%. Could anyone let me know what I am
missing here.
Nothing. Its a bug in FOP 0.20.5. Upgrade to 0.92beta where this bug has
been fixed.

<snip/>

Chris
Suresh Koya
2006-05-24 16:07:07 UTC
Permalink
Thanks chris, will do that. I managed with a workaround-

<fo:table table-layout="fixed" width="100%">
<fo:table-column column-width="proportional-column-width(3.75)"/>
<fo:table-column column-width="proportional-column-width(3.75)"/>
<fo:table-column column-width="proportional-column-width(2.5)"/>
<fo:table-body>
<fo:table-row>
<fo:table-cell padding-after="3pt" padding-before="3pt" padding-end="3pt" padding-start="3pt" column-number="1">
<fo:block text-align="start">
<fo:basic-link color="blue" external-destination="http://localhost/io/">
<fo:external-graphic src="http://localhost/images/io.gif" border="0px solid"/>
</fo:basic-link>
</fo:block>
</fo:table-cell>
<fo:table-cell padding-after="3pt" padding-before="3pt" padding-end="3pt" padding-start="3pt" column-number="2">
<fo:block text-align="start">
<fo:block font-weight="bold" font-family="Times-Roman" space-after="18pt" keep-with-next="always" line-height="28pt" font-size="18pt" id="A10">
Best of Java IO</fo:block>
<fo:block/>
10/02/2002
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>

Regards,
Suresh
Post by Suresh Koya
Hi,
I am using FOP 0.20.5. I am facing a problem creating table by
specifying width in percentage. Even though I specify the width as 75%
it takes the whole width of 100%. Could anyone let me know what I am
missing here.
Nothing. Its a bug in FOP 0.20.5. Upgrade to 0.92beta where this bug has
been fixed.



Chris



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-***@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-***@xmlgraphics.apache.org




---------------------------------
How low will we go? Check out Yahoo! Messenger’s low PC-to-Phone call rates.
Suresh Koya
2006-05-25 03:42:56 UTC
Permalink
I could not get this to work with the beta build also. Should I file a bug to this respect.

Regards,
Suresh Koya

Suresh Koya <***@yahoo.com> wrote: Thanks chris, will do that. I managed with a workaround-

<fo:table table-layout="fixed" width="100%">
<fo:table-column column-width="proportional-column-width(3.75)"/>
<fo:table-column column-width="proportional-column-width(3.75)"/>
<fo:table-column column-width="proportional-column-width(2.5)"/>
<fo:table-body>
<fo:table-row>
<fo:table-cell padding-after="3pt" padding-before="3pt" padding-end="3pt" padding-start="3pt" column-number="1">
<fo:block text-align="start">
<fo:basic-link color="blue" external-destination="http://localhost/io/">
<fo:external-graphic src="http://localhost/images/io.gif" border="0px solid"/>
</fo:basic-link>
</fo:block>
</fo:table-cell>
<fo:table-cell padding-after="3pt" padding-before="3pt" padding-end="3pt" padding-start="3pt" column-number="2">
<fo:block text-align="start">
<fo:block font-weight="bold" font-family="Times-Roman" space-after="18pt" keep-with-next="always" line-height="28pt" font-size="18pt" id="A10">
Best of Java IO</fo:block>
<fo:block/>
10/02/2002
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>

Regards,
Suresh
Post by Suresh Koya
Hi,
I am using FOP 0.20.5. I am facing a problem creating table by
specifying width in percentage. Even though I specify the width as 75%
it takes the whole width of 100%. Could anyone let me know what I am
missing here.
Nothing. Its a bug in FOP 0.20.5. Upgrade to 0.92beta where this bug has
been fixed.



Chris



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-***@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-***@xmlgraphics.apache.org




---------------------------------
How low will we go? Check out Yahoo! Messengerᅵs low PC-to-Phone call rates.


---------------------------------
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1&cent;/min.
Chris Bowditch
2006-05-25 07:54:34 UTC
Permalink
Post by Suresh Koya
I could not get this to work with the beta build also. Should I file a bug to this respect.
What couldn't you get to work? A table with width="75%" ??? Note, that
table-layout="auto" still isn't implemented in 0.92beta.

Chris

<snip/>

Continue reading on narkive:
Loading...