space above & belowElegant emphasis
If you hadn’t figured it out yet, I’m a big fan of white space. On the outside edge of the page (see page margins). Between capital letters (see letterspacing). Within table cells (see tables). Between paragraphs (see space between paragraphs).
And now, above and below a heading, as a form of emphasis. To show you what I mean, let me ask you something. DO YOU FIND THIS TO BE AN INVITING FORM OF EMPHASIS?
Or do you prefer this?
Well, there you have it.
Space above and below works on the page for the same reason a dramatic pause works when you’re talking. You draw a listener’s attention through contrast. Loudness is an effective form of contrast. But so is silence.
Likewise with the written word. Formatting tools like point size, color, and bold or italic have a role to play. But careless typographers mate them indiscriminately, breeding noise. Space above and below gives you emphasis without adding a single mark to the page.
How to set space above and below
WordRight-click in the text and select Paragraph → Indents and Spacing. Under Spacing, in the boxes next to Before and After, enter the measurements.
PagesView → Show Toolbar (or option + ⌘ + t) → Format button → Style pane → under Spacing, in the boxes labeled Before Paragraph and After Paragraph, enter the measurements.
CSSUse the margin-top and margin-bottom properties
How much space to add is a judgment call. Semantically, headings relate to the text that follows, not the text before. Thus you’ll probably want the space below to be smaller than the space above so the heading is visually closer to the text it introduces.
There is an upper limit. For instance, on a website, you wouldn’t want to add so much space before a heading that it disappears below the bottom of the browser.
by the way
If you’re already using space between paragraphs, the space you add around a heading should be larger, to create a distinction.
You can set the amount of spacing above and below paragraphs.
- Setting Paragraph Spacing Above and Below
- How to Set Paragraph Spacing Above and Below
- What’s Next?
[Menu Proxy — Headings — Online — Depth3 ]
How to Set Paragraph Spacing Above and Below
- Open the stylesheet you want to modify or create a new one.
Complete one of the following sets of steps, depending on whether you want to use the Simplified view or Advanced view in the Stylesheet Editor.
Simplified The Simplified view displays styles in a grid view and is often best for brand new users.
This view provides an easy way to apply properties to styles, with format options available from a toolbar and dialogs (similar to the way one would use an interface such as Microsoft Word). In some cases, only the most common property options are available in the Simplified view (e.g., font, letter/word spacing, paragraph alignment/indentation, autonumbering format, borders, background). One advantage of the Simplified view is that you can apply a property to multiple styles at the same time. You can also click a check box to hide the properties in the editor, allowing you to see only the styles.
Advanced The Advanced view displays styles in a tree structure, and despite the name, is user friendly for authors of all levels.
For the properties, you can toggle between a grouped display and an alphabetical display. The Advanced view of the Stylesheet Editor lets you edit more settings than are available in the Simplified view. In addition, the Advanced view lets you see and apply settings to multiple mediums and media queries at the same time.
Warning Mediums can be used if you want to use one group of settings for online output types and another group of settings for print-based output types. For example, you might use the default medium for your online outputs and the print medium for your print outputs. From the Medium drop-down in the Stylesheet Editor, make sure the proper medium is selected before you begin. In the Advanced view, you can open multiple mediums at once; you just need to look at the title at the top of the medium pane and make sure you are working in the correct one. If you are not using stylesheet mediums for your different outputs or if you want all mediums to have the same settings, just leave the medium set to default and continue. Please note that Contributor remembers the last medium that you used when working in the stylesheet, so it may or may not be the one that you want to use the next time around.
If Using Simplified View
- In the local toolbar, make sure the first button displays
(which means that the Simplified view is currently shown in the editor). If the button displaysinstead, then click it.
- In the upper-left corner of the Stylesheet Editor, click in the drop-down
field and select .
- Select the appropriate paragraph style. For example, you can select the parent p tag, or you can select a class that you may have created for that tag (e.g., p.Tip, p.Note).
- In the local toolbar of the editor, click
. The Properties dialog opens.
- Select the Paragraph tab.
- In the Before field, click in the upper-right corner and select Length.
- Enter a number in the field and use the down arrow in the lower-right corner to select a unit of measurement. See Units of Measurement. This is the amount of space that will be added above the paragraph.
- In the After field, click in the upper-right corner and select Length.
- Enter a number in the field and use the down arrow in the lower-right corner to select a unit of measurement. See Units of Measurement. This is the amount of space that will be added below the paragraph.
- In the Properties dialog, click OK.
If Using Advanced View
- In the local toolbar, make sure the first button
displays . If the button displaysinstead, then click it.
- In the upper-left corner of the Stylesheet Editor, click in the drop-down field and select
.
- Select the appropriate paragraph style. For example, you can select the parent p tag, or you can select a class that you may have created for that tag (e.g., p.Tip, p.Note).
- From the Show drop-down list on the upper-right side of the editor, select
.
- (Optional) You can use the toggle button in the local toolbar to show properties below in a group view or an alphabetical view.
- If you are using the group view, expand the Box group.
- To the right of margin-bottom, click and set the amount of space below the paragraph. When you are finished, click OK.
- To the right of margin-top, click and set the amount of space above the paragraph. When you are finished, click OK.
- Click
to save your work.
Note This feature is not supported for MadCap Lingo review package (LIREV) files.
Note You cannot use stylesheets for this feature in the Review (Full Registered) workflow.
Note Different browsers may treat margin and padding settings differently. For example, Internet Explorer 8 and Firefox honor padding settings more than they honor margin settings. If you were to set a left margin at, say, 1 inch, Internet Explorer 7 would show it that way. However, in order to get the same results in Internet Explorer 8 or Firefox, you would also need to set the left padding at 1 inch.
What’s Next?
After editing a style, you can apply it to content in a topic or snippet. See Applying Styles to Content.