Inline Elements

Contact Us or call 1-877-932-8228
Inline Elements

Inline Elements

An inline element is an element that does not cause a block to be created; for example, to apply formatting to text within a block. Inline elements are denoted with the inline tag. The following example illustrates the use of inline.

Code Sample:

BlocksAndInlines/Demos/HelloWorldInline.fo
<?xml version="1.0" encoding="utf-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
---- C O D E   O M I T T E D ----
<fo:page-sequence master-reference="hello">
		<fo:static-content flow-name="xsl-region-before">
			<fo:block font-size="24pt">Hello 
				<fo:inline font-weight="bold" 
					text-decoration="underline">World!</fo:inline>
			</fo:block>
		</fo:static-content>
---- C O D E   O M I T T E D ----
</fo:page-sequence>
	
</fo:root>

The example above will render as follows. Note that only the top left quarter of the page is shown.

The same text-formatting attributes shown for block FOs can be used for inline FOs.

Next