[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Inline Blocks?

Subject: RE: Inline Blocks?
From: "Kevin Brown" <kevin@xxxxxxxxxxx>
Date: Sat, 26 Feb 2011 13:00:59 -0800
 RE: Inline Blocks?
I agree with the first response, this is merely a table with three columns,
with column-width="300px" ... or is there some reason that a table cannot be
used? I would guess a silly case would be to replicate a table with floats
... like this .. would do the same thing.

<?xml version="1.0" encoding="utf-8"?>
<?xep-pdf-pdf-version 1.7?>
<?xep-pdf-compress false?>

<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"
	xmlns:rx="http://www.renderx.com/XSL/Extensions">
	<fo:layout-master-set>
		<fo:simple-page-master master-name="p" page-width="11in"
page-height="8.5in">
			<fo:region-body region-name="xsl-region-body"
margin=".25in"/>
		</fo:simple-page-master>
	</fo:layout-master-set>

	<fo:page-sequence master-reference="p">
		<fo:flow flow-name="xsl-region-body" font-size="11pt">
			<fo:block>
				<fo:float float="left">
					<fo:block-container width="1in">
						<fo:block
background-color="red">Stuff</fo:block>
					</fo:block-container>
				</fo:float>
				<fo:float float="left">
					<fo:block-container width="1in">
						<fo:block
background-color="yellow">Stuff</fo:block>
					</fo:block-container>
				</fo:float>				
				<fo:float float="left" clear="right">
					<fo:block-container width="1in">
						<fo:block
background-color="green">Stuff</fo:block>
					</fo:block-container>
				</fo:float>
				<fo:leader/>
			</fo:block>
			<fo:block line-height="0pt"><fo:leader/></fo:block>
			<fo:block>
				<fo:float float="left">
					<fo:block-container width="1in">
						<fo:block
background-color="red">Stuff</fo:block>
					</fo:block-container>
				</fo:float>
				<fo:float float="left">
					<fo:block-container width="1in">
						<fo:block
background-color="yellow">Stuff</fo:block>
					</fo:block-container>
				</fo:float>				
				<fo:float float="left">
					<fo:block-container width="1in">
						<fo:block
background-color="green">Stuff</fo:block>
					</fo:block-container>
				</fo:float>
			</fo:block>
		</fo:flow>
	</fo:page-sequence>
</fo:root>

Kevin Brown
RenderX
----------------------------------------------------------------------
Date: Fri, 25 Feb 2011 11:26:37 -0500
To: "xsl-list@xxxxxxxxxxxxxxxxxxxxxx" <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
From: Matthew Nehrbass <mnehrbass@xxxxxxx>
Subject: Inline Blocks?
Message-ID: <E13849F80986D242AB46E0B27EC71C6B5651AF18D1@xxxxxxxxxxxxxxxxxx>

Is there any way to create an inline element with a fixed width?

If I am repeating through nine elements, and I have 900px to work with, I w=
=3D ould like three 300px items on each line. Is that possible?

Confidentiality Notice: This electronic message transmission contains infor=
mation which may be confidential and/or proprietary. If you are not the int=
ended recipient, be aware that any disclosure, copying, distribution or use=
 of the contents of this information is prohibited unless permission has be=
en granted by the sender to forward it. If you have received this electroni=
c transmission in error, please let us know by reply and then delete it fro=
m your system

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.