[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] How to scale image in customized title page with margin-right?
You could try setting an end-indent equal to the negative value of your right margin. But it on the block containing your graphic. I'm not sure why you need the layout table here. I'm not sure how FOP handles it, but the XSL-FO specification says that a percentage value used in content-width means the percentage is applied to the intrinsic width of the graphic, not the available area. The width property takes a percentage of the available area to determine the viewport, that is, the space allocated for the graphic but not the graphic size itself. In general, I have found with FOP that setting width to a fixed value (with units) works the best. Bob Stayton Sagehill Enterprises DocBook Consulting bobs@sagehill.net ----- Original Message ----- From: "Darya Said-Akbari" <darya_akbari@yahoo.com> To: <docbook-apps@lists.oasis-open.org> Sent: Friday, October 27, 2006 12:40 AM Subject: [docbook-apps] How to scale image in customized title page with margin-right? > Hi, > > my customized first title page only has a > margin-right. > > While all text I place on it aligns correct to the > margin-right I have now a problem with an image that > should span from start to end of the page (outer left > to outer right). > > Unfortunately the margin-right disturbs here. Whatever > I set for content-width it never fits :( > > Here is the code I use: > > <xsl:template name="book.titlepage.recto"> > <fo:block> > <fo:table inline-progression-dimension="100%" > table-layout="fixed"> > <fo:table-column column-width="100%"/> > <fo:table-body> > <fo:table-row> > <fo:table-cell> > <fo:block text-align="center"> > <fo:external-graphic > src="{$titlepagegraphic}" content-width="45%"/> > </fo:block> > </fo:table-cell> > </fo:table-row> > ... > > Does anyone has a trick how I can keep the > margin-right and span the image from left to right? > > Regards, > Darya > > > > > > > ___________________________________________________________ > Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: > http://mail.yahoo.de > > --------------------------------------------------------------------- > To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org > For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org > > >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]