Re: [xep-support] background-image clipping

From: Alexander Peshkov (peshkov@renderx.com)
Date: Mon Oct 11 2004 - 00:57:09 PDT

  • Next message: David Tolpin: "Re: [xep-support] MathML support"

    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@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@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



    This archive was generated by hypermail 2.1.5 : Mon Oct 11 2004 - 01:15:46 PDT