[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Re: [xsl] XSL-FO: Section titles with icon: positoining
Subject: Re: [xsl] XSL-FO: Section titles with icon: positoining From: Michael.Hahn@xxxxxxxxxxxxxxxxxxx Date: Wed, 19 Dec 2012 12:06:13 -0600 |
Hi, Florent: Brute force: <fo:table> <fo:table-row> <fo:table-cell number-rows-spanned="2" padding-right="5px" ><fo:block><fo:external-graphic src="icon.png" /></fo:block></fo:table-cell> <fo:table-cell font-size="14pt"><fo:block>Lorem ipsum dolor... </fo:block></fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell line-height="3pt"><fo:block><fo:leader leader-pattern="rule" leader-length="100%"/></fo:block></fo:table-cell> </fo:table-row> </fo:table> Adjust sizes, widths and the table column width to suit. Back to work... Michael R. Hahn Publisher Technical Publications Business Aircraft michael.hahn@xxxxxxxxxxxxxxxxxxx Florent Georges <lists@xxxxxxxxxxxx> wrote on 12/19/2012 11:26:07 AM: > Hi, > > In XSL-FO, I have section titles represented as blocks, with > underline using border-bottom, and a small icon at the beginning, > using external-graphic (pointing to a PNG): > > <fo:block font-size="14pt" border-bottom="solid 2pt"> > <fo:external-graphic src="icon.png"/> > <fo:inline padding-left="5px">Lorem ipsum dolor...</fo:inline> > </fo:block> > > The problem is, the picture is in the block, and underlined as well, > at the same height as the text, while I'd like it to be "before the > title", centered vertically on the couple text+underline. Like in > http://fgeorges.org/tmp/xsl-fo-icon-positioning.png. For the vertical > alignment, I can adjust it manually with a static value if it is not > possible to vertically center it automatically. > > Any idea how to achieve this? > > Regards, > > -- > Florent Georges > http://fgeorges.org/ > http://h2oconsulting.be/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] XSL-FO: Section titles wi, Tony Graham | Thread | Re: [xsl] [Summary] 4 equivalent XP, Xmlizer |
Re: [xsl] XSL-FO: Section titles wi, Tony Graham | Date | Re: [xsl] [Summary] 4 equivalent XP, Xmlizer |
Month |