To add a line below text in a Word page header, open the header, click in its text paragraph, then choose Home > Borders > Bottom Border. This adds a rule that follows the paragraph and stays in the header on each applicable page. You can also draw a line shape for more precise placement; the paragraph-border method is usually easier to keep aligned.
What You’ll Need
- Microsoft Word for Microsoft 365 on Windows, or Word for Mac. The labels may vary slightly by platform or update.
- An existing document, and the header text you want to appear above the line. If the header is blank, you can add text while editing it.
- Optional: a preferred line color, thickness, or style, if the default border is not suitable.
Step-by-Step
- Open the page header. Double-click near the top margin of a page, above the main document text. Word switches into header-editing mode and displays the Header & Footer tab. If double-clicking does not open it, use Insert > Header > Edit Header. On Mac, you can also use Insert > Header > Edit Header; the ribbon may show the contextual tab as Header & Footer or Header and Footer.
- Enter or locate the header text. Type the text if needed, or click inside the existing header paragraph. Keep the cursor in the paragraph that should have the line beneath it. A paragraph border applies to the whole paragraph, not just the words, so avoid clicking into a separate blank paragraph unless you want the rule below that blank line.
- Set the paragraph alignment and width first. If the header should be left-aligned, centered, or right-aligned, choose the alignment from Home > Paragraph before adding the border. A bottom paragraph border normally runs across the paragraph’s available width, between its left and right indents; it does not automatically stop at the final character. If the line appears too short or too long, check the paragraph indents and any tab stops.
- Apply a bottom border. With the insertion point in the correct paragraph, go to Home. In the Paragraph group, open the arrow beside the Borders button and select Bottom Border. In some ribbon layouts the Borders button is shown as a small square-grid icon. The line should appear under the paragraph. On Word for Mac, use the Home tab and open the Borders menu in the Paragraph area, then choose Bottom Border; if the menu is compact, widen the Word window or open the ribbon overflow to find it.
- Check the result on the page. Click Close Header and Footer on the contextual tab, or double-click in the document body. Scroll through a few pages to confirm the rule is below the text and appears where expected. A standard header is reused on pages in that section, but first-page, odd-and-even-page, and section settings can make headers differ.
- Adjust the line if needed. Reopen the header and click in the same paragraph. Open the Borders menu and choose Borders and Shading if that option is available. In the dialog, select the border preset or individual bottom edge, choose a line style, color, and width, and set Apply to to Paragraph. Confirm with OK. The exact dialog layout can differ between Windows and Mac, but look for border style, color, width, and the preview that shows which edges are enabled.
- Save and verify the document. Save with Ctrl+S on Windows or Command+S on Mac. If you will print or share the file, check Print Preview or export a PDF to make sure the line is not clipped by the page edge and remains visible at the intended weight.
Alternative: draw a line shape. Use this when the rule needs a particular length or must sit at a precise vertical position. While the header is open, choose Insert > Shapes, select the straight Line under Lines, then drag across the header area. Hold Shift while dragging to constrain it to a horizontal line. Select the line and use the Shape Format tab’s Shape Outline options to change its color or weight. If the shape is difficult to position, open its layout or wrap-text options and choose a suitable setting, such as In Front of Text, then move it into place. Because the header is active when you insert it, the shape belongs to that header and can repeat with it. This approach is more flexible, but may need adjustment if margins or header spacing change.
Common Mistakes
- Adding a border to the wrong paragraph. A header may contain separate paragraphs for a logo, title, page number, or blank spacing. A bottom border affects the paragraph where the cursor sits. Click directly in the text line you intend to underline before choosing Bottom Border.
- Choosing a full box border instead of a bottom border. The Borders menu includes several edge combinations. If you see a line above or beside the text too, reopen the menu and select Bottom Border rather than Outside Borders or All Borders.
- Using repeated underscore characters. Typing underscores or hyphens can create uneven lengths and may wrap differently on another computer. A paragraph border or line shape is a more stable choice.
- Expecting the line to match only the text width. Paragraph borders generally extend across the paragraph’s available width. Adjust paragraph indents if you need a shorter rule, or use a shape when exact length matters.
- Editing only one of several different headers. A document can have separate first-page, odd-page, even-page, and section headers. Check which header is active and whether Different First Page or Different Odd & Even Pages is enabled on the Header & Footer tab.
Tips
- Use a paragraph border for a line that should stay attached to header text. It generally moves with the paragraph and adapts better than a manually positioned shape.
- Keep the rule visually subtle. A thin black or gray line is often easier to read than a heavy border, especially when the document will be printed in grayscale.
- For consistent placement, adjust header spacing through the Header & Footer tab’s Position controls rather than adding several blank paragraphs. Too many blank lines can push the header and rule into the document body.
- If the line should not appear on the first page, turn on Different First Page while editing the header, then add or remove the border in the appropriate first-page or primary header. Check both versions after the change.
- In a document with multiple sections, use the section navigation controls in Header & Footer to inspect each section. Link to Previous determines whether a section’s header is connected to the preceding one; changing a linked header can affect more pages than expected.
- For a heading within the document body rather than the page header, click in that heading paragraph and apply the same Bottom Border command. It will format that body paragraph, but it will not repeat at the top of every page.
Troubleshooting
No line appears after selecting Bottom Border: Confirm that the cursor is inside the header paragraph, not the document body, and that the border menu’s preview or selection indicates the bottom edge. Try selecting the paragraph, then apply Bottom Border again. If the line color is white or its width is extremely thin, open Borders and Shading and choose a visible color and a modest width.
The line is in the wrong place or spans too much of the page: Reopen the header and inspect the paragraph’s left and right indents under Home > Paragraph. A paragraph border follows those indents. If you want a set length independent of the text paragraph, remove the border and insert a line shape instead. For a shape, use the layout options to adjust wrapping and position; dragging a shape while it is behind text may be difficult.
The line shows on some pages but not others: Check whether the pages belong to different sections. Open the header on a page without the line and look for a section number or a different header label. Review Different First Page, Different Odd & Even Pages, and Link to Previous. Add the border to each independent header that needs it, or link the sections if they should share identical header content.
The line moves after editing text: This is common with a shape whose wrapping or anchoring is not suited to the header layout. A paragraph border is less prone to drifting. If you keep the shape, select it and adjust its wrapping and position, then avoid changing the header’s margins or spacing without checking the line again.
The rule is missing in print or PDF: Check Print Preview, the line’s color and weight, and the printer’s printable area. A very pale or hairline border may be hard to reproduce. Increase its weight slightly or select a darker color, and make sure the line is not positioned at the extreme edge of the page.
Frequently Asked Questions
Will the line appear on every page?
A border in a standard header appears on pages using that header in the same section. It may not appear on a distinct first-page header, an odd- or even-page header, or a separate section header unless you add it there or link the headers appropriately.
Can I make the line only as wide as the header text?
A bottom paragraph border normally spans the paragraph’s available width, not just the characters. Adjust the paragraph’s indents to shorten it, or draw a line shape and set its length manually.
How do I change the line’s color or thickness?
Click in the bordered header paragraph and open Home > Borders > Borders and Shading. Choose a style, color, and width, check the preview shows only the bottom edge, and apply it to the paragraph. The exact menu presentation can vary by Word update.
Can I add a line below a logo in the header?
Yes. Place the logo and text in the header, then apply a bottom border to the paragraph that should carry the line. If the logo is a floating image in a separate paragraph, the border may appear under that paragraph instead; use a line shape or arrange the logo and text in a single table or paragraph layout when you need predictable alignment.
What is the difference between a border and a shape?
A border is attached to a paragraph and is usually quicker to maintain. A shape is a separate object that can have a custom length, position, and outline, but it can shift when the layout changes. Choose the border for a simple full-width rule and a shape for more exact placement.
Does this work in Word for Mac?
Yes. Open the header, click its paragraph, then use the Borders menu on the Home tab and choose Bottom Border. Ribbon grouping and dialog names can look a little different from Windows, but the paragraph-border method and the general shape approach are available in current Word for Mac.
Related
- Excel Text Across Cells Without Merging
- Excel Time Shortcut: How to Insert the Current Time
- Excel Time Format Over 24 Hours: Display Elapsed Time Correctly
Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.
More in How-to basics
- Google Sheets Spreadsheet: What It Is and How to Use ItGoogle Sheets is Google’s web-based spreadsheet app: you can enter information in a grid, calculate values with formulas,…
- Excel Filters: How to Remove or Clear Them in ExcelTo get rid of a filter in Excel, choose whether you want to show all rows, hide the…
- Inventory Spreadsheet Template for Google SheetsFor an inventory spreadsheet, use Google Sheets rather than Google Docs: Sheets is Google’s spreadsheet app, while Docs…
- How to Insert a Vertical Line in Word: 5 Easy MethodsTo add a vertical line in Word, choose Insert > Shapes > Line, then drag while holding Shift…
- How to Create an Email Distribution List in OutlookTo create a reusable email list in Outlook, open People and create a contact group or contact list,…
- How to Keep Date Format in ExcelTo keep dates consistent in Excel, select the cells or column, open Format Cells, choose a date format,…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.