Vertical-align fop doesn't support. So you have to center your image in a
block with padding. Text-align="center" as attribute for your cell centers
the content (your block and embedded image) horizontally. I guess I would
solve it as you described... 

Greetz suse

-----Ursprüngliche Nachricht-----
Von: David Neary [mailto:[EMAIL PROTECTED] 
Gesendet: Montag, 28. April 2003 15:47
An: '[EMAIL PROTECTED]'
Betreff: 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

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

Reply via email to