Applying Color to the Background for Topics
You can change the background color for topics by using the main body style or classes of that style. If you want the background color to be applied to all topics using a particular stylesheet, you can use the main body style. If you want to change the background color for only some topics, create and use a class of the body style.
[Menu Proxy — Headings — Online — Depth3 ]
How to Apply a Background Color for All Topics
- From the Content Explorer, open the stylesheet that you want to modify.
-
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.
-
- 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 displays instead, then click it.
- In the upper-left of the editor, make sure the drop-down field is set to .
- From the grid in the bottom portion of the editor, find and select the body tag.
- In the local toolbar of the editor, click . The Properties dialog opens.
- Select the Font tab.
- In the Background field, click the down arrow and select a color from the popup. For advanced color options, select More Colors and use the fields in the Color Picker dialog.
- In the Properties dialog, click OK.
- In the local toolbar, make sure the first button displays . If the button displays instead, then click it.
- In the upper-left of the editor, make sure the drop-down field is set to .
- On the left side of the editor, find and select the body tag.
- 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 grouped view, expand the Background group.
- To the right of background-color, click .
- Select a color. For advanced color options, click and use the fields in the Color Picker dialog, or click to select a color already used elsewhere on your screen.
- Click to save your work.
If Using Simplified View
If Using Advanced View
How to Apply a Background Color for Only Some Topics
- From the Content Explorer, open the stylesheet that you want to modify.
-
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.
-
- 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 displays instead, then click it.
- In the upper-left of the editor, make sure the drop-down field is set to .
- From the grid in the bottom portion of the editor, find and select the body tag.
- In the local toolbar, click Add Selector. The New Selector dialog opens.
- In the Class Name field, enter a name for the new style class and click OK. The new class is added under the body style.
- In the grid in the bottom portion of the editor, make sure the new style class is selected.
- In the local toolbar of the editor, click . The Properties dialog opens.
- Select the Font tab.
- In the Background field, click the down arrow and select a color from the popup. For advanced color options, select More Colors and use the fields in the Color Picker dialog.
- In the Properties dialog, click OK.
- In the local toolbar, make sure the first button displays . If the button displays instead, then click it.
- In the upper-left of the editor, make sure the drop-down field is set to .
- On the left side of the editor, find and select the body tag.
- In the local toolbar, click Add Selector. The New Selector dialog opens.
- In the Class Name field, enter a name for the new style class and click OK. The new class is added under the body style.
- On the left side of the editor, make sure the new style class is selected.
- 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 grouped view, expand the Background group.
- To the right of background-color, click .
- Select a color. For advanced color options, click and use the fields in the Color Picker dialog, or click to select a color already used elsewhere on your screen.
- Click to save your work.
- Open the topic to which you want to apply the background color.
- If the tag block bars are not shown to the left of the content, click at the bottom of the editor.
- Right-click the body tag bar (the second bar from the left).
- In the context menu, select Style Class > body.[name of class].
- Click to save your work.
If Using Simplified View
If Using Advanced View
What’s Noteworthy?
Note If you want to select a background color for selected text only, see Setting the Background Color for Text.
Note These steps change the background for the entire topic in online output. For print output that uses page layouts, these steps affect the background of the frames only, not the margins outside of the frames. If you want to change the background for print output that extends to the margins, you can specify background settings in your page layouts