W3C home > Mailing lists > Public > www-xsl-fo@w3.org > February 2004

Re: Space Before Image(was: Table is too heigh)

From: Eugene Ciurana <author@eugeneciurana.com>
Date: Wed, 11 Feb 2004 07:40:15 -0800 (PST)
Message-ID: <44786.>
To: www-xsl-fo@w3.org

** Begin original message ** Knut Meinke
> Hi,
> I could simplify the expamle.
> <fo:block background-color="green">
> 	<fo:external-graphic content-width="10mm"
> 		src="file:../images/RedGif.jpg"/><fo:inline>asa</fo:inline>
> </fo:block>

The code is working fine for me.

The green area that you talk about is defined in the block statement, and
affects the whole block.  If you change the margins left/right you can see
how that green area shrinks or extends.  Try:

<fo:block background-color="green" margin-right='7.5cm'>
	<fo:external-graphic content-width="10mm"

That reduces the length of the green area.

If you want only certain parts of your code to be "highlighted" by a given
background colour, use fo:inline


San Francisco, CA  94123 USA
Received on Wednesday, 11 February 2004 09:51:55 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:10:00 UTC