XFA Specification
Chapter 25, Rich Text Reference
Supported Paragraph Formatting
939
left, and right margins. Use of this attribute provides no additional features beyond the individually
addressable features described in sections
“Space Before Paragraph”, “Space After Paragraph”, “Line
Spacing”, “Left Margin”, “Right Margin”,
and
“First Line Indent”.
The syntax of the
margin
style attribute is
explained in the following excerpt from the
[CSS2]
If there is only one value, it applies to all sides. If there are two values, the top and bottom margins are set to
the first value and the right and left margins are set to the second. If there are three values, the top is set to
the first value, the left and right are set to the second, and the bottom is set to the third. If there are four
values, they apply to the top, right, bottom, and left, respectively.
Example:
<body>
<p>
This is the first paragraph.
</p>
<p style="margin:0.5in">
This second paragraph has a half-inch margin on all sides.
</p>
<p>
This is the third paragraph.
</p>
</body>
Produces:
This is the first paragraph.
This second paragraph has a half-inch margin on all sides.
This is the third paragraph.
Space After Paragraph
A paragraph of text may have additional succeeding vertical space via the use of the
[CSS2]
margin-bottom
style attribute with a measurement.
Example:
<body>
<p style="margin-bottom:0.5in">
This paragraph is spaced a half-inch away from the next paragraph.
</p>
<p>This is a paragraph of text.</p>
</body>