[xep-support] Re: Centering a block of text

Kevin Brown kevin at renderx.com
Fri Dec 23 12:57:45 PST 2011


I with Ken on this one, not sure what "dynamic change" you are looking for. 

For instance, if you wish the centered block to be 2in wide, then this is
perfect:

			<fo:table width="100%">
				<fo:table-column
column-width="proportional-column-width(1)"/>
				<fo:table-column column-width="2in"/>
				<fo:table-column
column-width="proportional-column-width(1)"/>
				<fo:table-body>
					<fo:table-row>
	
<fo:table-cell><fo:block><fo:leader/></fo:block></fo:table-cell>
						<fo:table-cell>
							<fo:block>I am a
happy little line of left-aligned text within a 2in centered table
column.</fo:block>
						</fo:table-cell>
	
<fo:table-cell><fo:block><fo:leader/></fo:block></fo:table-cell>
					</fo:table-row>
					
				</fo:table-body>
			</fo:table>

Kevin Brown
RenderX

-----Original Message-----
From: xep-support-bounces at renderx.com
[mailto:xep-support-bounces at renderx.com] On Behalf Of G. Ken Holman
Sent: Friday, December 23, 2011 12:33 PM
To: RenderX Community Support List; RenderX Community Support List
Subject: [xep-support] Re: Centering a block of text

At 2011-12-23 14:55 -0500, Cooper, Craig (LNG-PEO) wrote:
>I'm trying to find a way to horizontally center a block of text on a 
>page but within the block have text be left justified. I've tried 
>some 3 column table techniques with no success because I need the 
>block of text to dynamically change with but still have the entire 
>block be centered.

What kind of "dynamic changes" do you need to support that cannot be 
accommodated with a table cell?

. . . . . . . . . Ken

--
Contact us for world-wide XML consulting and instructor-led training
Free 5-hour video lecture: XSLT/XPath 1.0 & 2.0 http://ude.my/uoui9h
Crane Softwrights Ltd.            http://www.CraneSoftwrights.com/f/
G. Ken Holman                   mailto:gkholman at CraneSoftwrights.com
Google+ profile: https://plus.google.com/116832879756988317389/about
Legal business disclaimers:    http://www.CraneSoftwrights.com/legal


!DSPAM:87,4ef4e59563737993013332!


_______________________________________________
(*) To unsubscribe, please visit
http://lists.renderx.com/mailman/options/xep-support
(*) By using the Service, you expressly agree to these Terms of Service
http://w
ww.renderx.com/terms-of-service.html



More information about the Xep-support mailing list