[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: graphics & multi-line text
Michael Rerick wrote:
What I am trying to do is have a corporate graphic on the left side of a page with the report text centered on the page and centered vertically on the graphic (see below). This is at the top of the page. The report title consists of two lines that need to have different font sizes. This is inside a static-content region. see below: [snip]<fo:root> <fo:layout-master-set> <fo:simple-page-master master-reference="page" <fo:region-before extent="2.0in"/> <fo:region-body region-name="xsl-region-body" margin-top="1.95in"
[snip] <fo:static-content flow-name="xsl-region-before"> <fo:table width="10.5in"> <fo:table-column column-number="1" column-width="1.5in"/> <fo:table-column column-number="2" column-width="1in"/> <fo:table-column column-number="3" column-width="3in"/> <fo:table-column column-number="4" column-width="1in"/> <fo:table-column column-number="5" column-width="1in"/> <fo:table-column column-number="6" column-width="1in"/> <fo:table-column column-number="7" column-width="1in"/> <fo:table-column column-number="8" column-width="1in"/>
<fo:table-body> <fo:table-row> <fo:table-cell column-number="1" number-columns-spanned="1">
<fo:inline> What's the reason for the fo:inline here? <fo:external-graphic src="url(Corporate_05_black.jpg)" scaling="unifiorm" height=".6in" width=".6in"/> </fo:inline> </fo:table-cell> <fo:table-cell column-number="2" number-columns-spanned="7" line-height=".6in"> <fo:block font-family="serif" font-size="14pt" font-weight="bold" text-align="center" alignment-adjust="text-after-edge"> <xsl:text>REPORT TITLE </xsl:text> (SUB-TITLE </fo:block>
<fo:block font-family="serif" font-size="14pt" font-weight="bold" space-before="0.6in / 2 - 13.5pt"> <xsl:text>REPORT TITLE </xsl:text> </fo:block> <fo:block font-family="serif" font-size="12pt" font-weight="bold"> <xsl:text>(SUB-TITLE </xsl:text> </fo:block> You might want to fine tune the space-before so that the text optically centered. J.Pietschmann
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|