XFA Specification
Chapter 25, Rich Text Reference
Supported Paragraph Formatting
936
Body Element
The displayable content of an HTML document is contained in a
body
element, as specified in
[XHTML].
In
XFA rich text may be enclosed in a
body
element, although this is not required. It may also be enclosed in
a
body
element that is itself within an
html
element. The
body
element is merely a container and does
not appear in the output.
Supported Paragraph Formatting
First Line Indent
A paragraph of text may be indented on the first line (temporarily adjusting the left margin) via the use of
the
[CSS2]
style attribute with a measurement.
Example:
<p style="text-indent:0.5in">
The first line of this paragraph is indented a half-inch.<br />
Successive lines are not indented.<br />
This is the last line of the paragraph.<br />
</p>
Produces:
The first line of this paragraph is indented a half-inch.
Successive lines are not indented.
This is the last line of the paragraph.
Horizontal Alignment
A paragraph of text may be aligned horizontally via the use of the
[CSS2]
style attribute.
The supported alignments are limited to left, center, right, justify, and justify-all. justify-all is a
non-standard extension to
[CSS2]
justified.
Example:
<p style="text-align:right">
This is the first line of the paragraph.<br />
This is the second line of the paragraph.<br />
This is the last line of the paragraph.<br />
</p>
Produces:
This is the first line of the paragraph.
This is the second line of the paragraph.
This is the last line of the paragraph.