You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by David Neary <Da...@phenix.fr> on 2003/04/28 15:46:33 UTC

Yet another block positioning question...

Hi again,

I'm using a table to position a number of images, along with a caption, in a
grid.

I would like the images to be centered vertically and horizontally in the
table cell, and have the caption at the bottom of the table cell. The
equivalent old HTML looks like this...

<table>
  <tr>
    <td valign="center" align="center" width="400" height="400">
      <img src="myimg.jpeg" alt="My image"/>
    </td>
  </tr>
  <tr>
    <td style="text-align: center">
      My Caption
    </td>
  </tr>
</table>

Again, I wanted to avoid complicating the Fo with tables inside tables, so I
figured there would be a way to have a block containing the image aligned
center (vertically and horizontally), and another block holding the caption
aligned with the bottom of the table cell. Is this the best approach to
take?

Cheers,
Dave.

--
David Neary
Phenix Engineering
110 ave Jean Jaures, 69007 Lyon 

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


Re: Yet another block positioning question...

Posted by "J.Pietschmann" <j3...@yahoo.de>.
David Neary wrote:
> I would like the images to be centered vertically and horizontally in the
> table cell, and have the caption at the bottom of the table cell. The

See
  http://xml.apache.org/fop/faq.html#fo-center
Use another row for the caption and keep-with-next to keep the rows
together.

J.Pietschmann


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org