XFA Specification
Chapter 25, Rich Text Reference
Supported Paragraph Formatting
938
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.
Paragraph
A paragraph of text is expressed using the
[XHTML]
paragraph
p
element. By default text contained within
the
p
element flows from left-to-right, word-wrapping as necessary to fit within the left and right margins.
By default consecutive white space characters are compressed to a single space character.
p
elements
cannot nest, nor can they hold
html
or
body
elements.
Example:
<p>This is a paragraph of text. This is some more text.</p>
Produces:
This is a paragraph of text. This is some more text.
The paragraph element may have attributes that format the paragraph, as described in the following
subsections. The left-to-right flow may be interrupted by a
br
element, as described in
“Line Break” on
page 937.
Right Margin
A paragraph of text may be indented on the right (adjusting the right margin) via the use of the
[CSS2]
margin-right
style attribute with a measurement. This is most commonly used in concert with a right
text alignment, as described in Horizontal Alignment.
Example:
<p style="margin-right:0.5in;
text-align:right">
This text is right-aligned and right-indented a half-inch.
</p>
Produces:
This text is right-aligned and right-indented a half-inch.
Set Margins
One or more margins may be adjusted, affecting paragraph spacing and indenting, through the use of the
[CSS2]
margin
style attribute which accepts a variable number of arguments affecting the top, bottom,
Home Index Bookmark Pages
Pages: Home Index All Pages