Title: RE: right justifying table cell text

 
> >I'm trying to rigth justify the text in a table cell.
>
> Use a block:
> <fo:table-cell>
>   <fo:block text-align="end">
 
Thanks Roland.  I've tried using text-align="end" but for
some reason its not having the desired result in my case.
I'm trying to align the page numbers in a TOC.  Here's what
was generated for one of the page number cells

<fo:table-cell>
   <fo:block text-align="end" font-size="small">
       <fo:page-number-citation ref-id="Eligibility"/>
   </fo:block>
</fo:table-cell>

but the page numbers are rendered as

     ch 1 ............  1

     ch 2 ............  10

Changing the font-size for this block also doesn't seem to
have any effect.  Thanks for any suggestion.  The entire table follows

    Nick


<fo:block space-after="1em" font-size="18pt" text-align="center">
         Table of Contents
      </fo:block>
<fo:table>
<fo:table-column column-width="6cm"/>
<fo:table-column column-width="11cm"/>
<fo:table-column column-width="1cm"/>
<fo:table-body>
<fo:table-row border-width="0.5pt">
<fo:table-cell>
<fo:block font-size="small" text-align="left">About Your Medical Benefits</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block>
<fo:inline>
<fo:leader leader-pattern="dots"/>
</fo:inline>
</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block text-align="end" font-size="small">
<fo:page-number-citation ref-id="About Your Medical Benefits"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row border-width="0.5pt">
<fo:table-cell>
<fo:block font-size="small" text-align="left">Eligibility</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block>
<fo:inline>
<fo:leader leader-pattern="dots"/>
</fo:inline>
</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block text-align="end" font-size="small">
<fo:page-number-citation ref-id="Eligibility"/>
</fo:block>
</fo:table-cell>

</fo:table-row>
<fo:table-row border-width="0.5pt">
<fo:table-cell>
<fo:block font-size="small" text-align="left">Enrollment</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block>
<fo:inline>
<fo:leader leader-pattern="dots"/>
</fo:inline>
</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block text-align="end" font-size="small">
<fo:page-number-citation ref-id="Enrollment"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row border-width="0.5pt">
<fo:table-cell>
<fo:block font-size="small" text-align="left">Paying for Benefits</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block>
<fo:inline>
<fo:leader leader-pattern="dots"/>
</fo:inline>
</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block text-align="end" font-size="small">
<fo:page-number-citation ref-id="Paying for Benefits"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row border-width="0.5pt">
<fo:table-cell>
<fo:block font-size="small" text-align="left">PPO Option</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block>
<fo:inline>
<fo:leader leader-pattern="dots"/>
</fo:inline>
</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block text-align="end" font-size="small">
<fo:page-number-citation ref-id="PPO Option"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row border-width="0.5pt">
<fo:table-cell>
<fo:block font-size="small" text-align="left">When Coverage Begins</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block>
<fo:inline>
<fo:leader leader-pattern="dots"/>
</fo:inline>
</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block text-align="end" font-size="small">
<fo:page-number-citation ref-id="When Coverage Begins"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row border-width="0.5pt">
<fo:table-cell>
<fo:block font-size="small" text-align="left">When Coverage Ends</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block>
<fo:inline>
<fo:leader leader-pattern="dots"/>
</fo:inline>
</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block text-align="end" font-size="small">
<fo:page-number-citation ref-id="When Coverage Ends"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row border-width="0.5pt">
<fo:table-cell>
<fo:block font-size="small" text-align="left">Coverage Certifications</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block>
<fo:inline>
<fo:leader leader-pattern="dots"/>
</fo:inline>
</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block text-align="end" font-size="small">
<fo:page-number-citation ref-id="Coverage Certifications"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row border-width="0.5pt">
<fo:table-cell>
<fo:block font-size="small" text-align="left">ERISA</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block>
<fo:inline>
<fo:leader leader-pattern="dots"/>
</fo:inline>
</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block text-align="end" font-size="small">
<fo:page-number-citation ref-id="ERISA"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>

Reply via email to