[xep-support] background-image clipping

Alexander Peshkov peshkov at renderx.com
Mon Oct 11 00:57:09 PDT 2004


Hello Steve,

Note that width/height properties are not allowed on fo:block.
Instead you should use fo:block-container. Set image as a background
on this container together with appropriate width/height and put your
text block inside. 

Best regards,
Alexander Peshkov                             mailto:peshkov at renderx.com
RenderX


SL> I have a banner which is output as a page header, as a background image 
SL> to a block which contains header text.
SL> What's the best way of ensuring that the entire background image is 
SL> displayed? At the moment it is clipped to the area of the block text - 
SL> which seems sensible, but not what is needed.

SL>             <fo:static-content flow-name="chapterStartPage-region-before">
SL>             <fo:block space-before="14mm" width="175.68mm" 
SL> height="50.83mm" color="white" 
SL> background-image='url(../resources/images/background.png)' 
SL> background-repeat="no-repeat">
SL>                 <fo:block xsl:use-attribute-sets="Level3Text">
SL>                  <xsl:value-of select="ancestor::part/title"/>
SL>                  </fo:block>
SL>                  <fo:block space-after="20mm" 
SL> xsl:use-attribute-sets="Level2Text">
SL>                  <xsl:value-of select="title"/>
SL>                  </fo:block>
SL>             </fo:block>
SL>             </fo:static-content>

SL> Any help gratefully appreciated.


-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo at renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html



More information about the Xep-support mailing list