Example: Adding a header to a master page

When you create a master page, the header element is created automatically in the Master Page tab of the template editor. You can use the palette to drag elements in to construct the layout and style of your header within the master page. Then, the master page can be reused across templates.

Before you begin

Create a master page. See Creating a master page for more information.

Procedure

To create an example header:

  1. From the Outline view, drag the master page into an element in the template editor.
  2. In the Master Page tab of the editor, add the Paragraph icon Paragraph element to the Header.
  3. In the paragraph, insert two Text icon Text elements.
  4. Double-click the first text element and enter Document Title: . Include a space after the text.
  5. Double-click the second text element and enter Section Title.
  6. Select the paragraph element to add formatting in the Properties view:
    1. Select the Border tab.
    2. Select the bottom border icon to apply formatting to a border that displays under the element.
    3. For the Margin, enter 10. This selection places the border line 10 pixels away from the text.
    4. For the Style, select single. This selection creates a single line below the paragraph element.
    5. For the Width, enter 1. This selection makes the border 1 pixel wide.
  7. Select the first text element to add formatting in the Properties view:
    1. Select the Font tab.
    2. Click the bold icon. The Set bold value window opens.
    3. Select true and click OK.
  8. Save the changes.

Example

Template example:

Template example

Output example:

Output example

Creating a header that adjusts to the page layout

You can use a table element to design a header that scales to both portrait and landscape layouts.

Procedure

  1. Create a master page.
  2. In the Master page view, drag a Table element into the Header.
  3. Enter 1 row and 2 columns and click OK.
  4. Drag a Paragraph element into each cell.
  5. Select the first Paragraph element.
  6. In the Properties view, select the Padding, indents, and spacing tab.
  7. For Alignment, select Left.
  8. Select the second Paragraph element.
  9. In the Properties view, select the Padding, indents, and spacing tab.
  10. For Alignment, select Right.
  11. Drag a Text element into each paragraph element.
  12. Enter header text into each Text element.
  13. Generate the output.

Feedback