You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Antonio Fiol <fi...@w3ping.com> on 2002/07/09 14:55:08 UTC

Re: Width of block with border - does it work?

Try indenting your text (left or right indenting) instead of setting its 
width.


Peter Rohleder wrote:

>I have the impression that a block with doesn't accept the width-property .
>
>I would like to run a border around the block. Instead of running the border aorund the whole width of the page
>I would like to run it only around the content ( I know that the content is only a few short lines!)
>
>The block looks like following:
><fo:block font-family="Times"
>	font-size="16pt"
>	border-width="3px"
>	border-style="dotted"
>	border-color="#CC0033"
>	space-before="8pt"
>	space-after="12pt"
>	width="6cm"
>	padding="2mm">
>
>	<xsl:text>a simple Block with Border</xsl:text>
>
></fo:block>
>
>One would expect having the block only a size of 6cm.
>But instead of the expected result the border runs over the whole horizontal extent of the page.
>
>Any ideas?
>
>Peter Rohleder, BfArM
>
>
>.
>
>  
>