Subject: Re: [xsl] xsl-fo? center external-graphic and align start side of caption with start side of external-graphic|
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Date: Tue, 08 Dec 2009 15:14:52 -0500
I want some XSL-FO external-graphics to appear centered on the page, with captions underneath
If the external-graphic is wider than the caption, then I want the left or start side of the caption to be aligned with the left or start side of the external-graphic
If the caption is wider than the external-graphic, then I want the caption to appear centered on the page (I want the external-graphic also centered on the page, as before)
To achieve this I wrapped both the external-graphic and the caption in blocks, then wrapped both those blocks in one block, and set text-align="center" on that block's container. Then I set text-align="start" on the caption's block. I hoped this would have the effect of centering the block containing both external-graphic and caption, and aligning the caption against the start side of that block.
-- XSLT/XQuery/XPath training after http://XMLPrague.cz 2010-03-15/19 Vote for your XML training: http://www.CraneSoftwrights.com/s/i/ Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video Video lesson: http://www.youtube.com/watch?v=PrNjJCh7Ppg&fmt=18 Video overview: http://www.youtube.com/watch?v=VTiodiij6gE&fmt=18 G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Male Cancer Awareness Nov'07 http://www.CraneSoftwrights.com/s/bc Legal business disclaimers: http://www.CraneSoftwrights.com/legal