Spacing
Boxes, tables, paragraphs and many other elements have a margin and padding.
The margin is the white space around an element, outside the border. It is used to position an element in relation to the other elements, by putting more space between the element and its surrounding elements.
The padding is the space between an element's content and its border. It is used to position the content of the element inside the border.
Elements have a rectangular shape, so they have four sides. The margin and padding have be different on all sides.
Tip: Use a negative left margin to create a hanging paragraph or image.
To set the spacing:
-
Right-click the element and click the respective element on the shortcut menu.
Alternatively, select the element (see Selecting an element) and on the Format menu click the respective element. -
Click the Spacing tab.
Note: All settings in the Formatting dialog are in fact CSS style rules. Click the Advanced button to manually add CSS properties (at the left) and values (at the right). For more information about CSS, see Styling and formatting.
It is also possible to change an element's formatting via a style sheet; see Styling templates with CSS files.
-
Set the value for the padding in measure or percentage. You can do this for each side separately, which is equivalent to the padding-top, padding-bottom, padding-left or padding-right property in CSS. To set the same padding for all sides, check the option Same for all sides. This is equivalent to the padding property in CSS.
-
Set the value for the margin in measure or percentage. You can do this for each side separately, which is equivalent to the margin-top, margin-bottom, margin-left or margin-right property in CSS. To set the same margin for all sides, check the option Same for all sides. This is equivalent to the margin property in CSS.
-
Click OK, or click Apply to apply the changes without closing the dialog.