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.65.118.213.15.1076514015.squirrel@lavender.cime.net>
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"
		src="file:../images/RedGif.jpg"/><fo:inline>asa</fo:inline>
</fo:block>

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

Cheers,

Eugene
http://www.eugeneciurana.com
San Francisco, CA  94123 USA
Received on Wednesday, 11 February 2004 09:51:55 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:06:12 GMT