To add a line beneath a heading in Word, click in the heading paragraph, then choose Home > Paragraph > Borders > Bottom Border. This creates a line that follows the paragraph when text moves. If by header you mean the repeating area at the top of every page, edit the page header first and apply the same bottom border to a paragraph inside it.
What You’ll Need
- Microsoft Word for Microsoft 365 on Windows, or Word for Mac. The ribbon labels and arrangement can differ slightly by version.
- A document with the heading or page header where you want the line. Save the document before making formatting changes if it is important.
Step-by-Step
- Decide which kind of header you mean. A heading is text in the body of the document, such as a section title. A page header is the separate area at the top of pages, often used for a document title, date, or page number. A bottom border is a convenient way to draw a line under either one, but you must place the cursor in the right paragraph.
- Find the heading paragraph. For a section heading, click anywhere in that heading’s paragraph. You do not have to highlight the words: putting the insertion point in the paragraph is usually enough. This is often preferable because a paragraph border belongs to the paragraph, not just to the selected letters. If the heading spans multiple paragraphs, click in only the paragraph that should have the line.
- Open the Borders menu. On Windows, go to the Home tab and find the Paragraph group. Select the arrow beside the Borders button; do not click the main button if it repeats the last border choice. If the ribbon is compressed, widen the Word window or look for the Borders control in the Paragraph group’s overflow menu.
- Apply the bottom border. Choose Bottom Border from the menu. Word draws a horizontal rule at the bottom of the paragraph. It normally extends across the paragraph’s available width, rather than stopping at the last character of the heading. Click outside the paragraph to check how it looks in context.
- Change the line’s appearance if needed. Open the Borders menu again and choose Borders and Shading. In the Borders tab, select a line style, color, or width, make sure the bottom edge is selected in the preview, and check that the setting applies to the paragraph. Choose OK to apply it. The available options can vary slightly with Word versions and platform.
- Adjust the space around the heading. A border can look crowded if the heading sits close to the text below it. Put the cursor in the heading and use the paragraph spacing controls on the Layout tab, or open the Paragraph dialog from the Home tab, to adjust spacing before or after the paragraph. Make small changes and check the result; avoid adding several empty paragraphs just to push the line away from the text.
- For a repeating page header, open the header area first. Double-click near the top of a page to edit the header. You can also use Insert > Header > Edit Header on Windows. Click in the header paragraph that contains the header text, then choose Home > Paragraph > Borders > Bottom Border. Close Header and Footer, or double-click in the document body, to return to editing. The line will appear with that header wherever the same header is used.
- Use a shape when you need precise placement or length. If the line must be shorter than the paragraph width, or sit at a particular position, insert a line shape instead. On Windows, choose Insert > Shapes > Line, then drag where the line should go. Hold Shift while dragging to keep it level. On Mac, look for the line in Insert > Shape; the exact ribbon layout can vary. A shape is positioned independently, so check its placement after editing nearby text.
- Check the document before finishing. Scroll through the page and, for a page header, inspect more than one page. Confirm that the line is under the intended paragraph, that it is not covering text, and that it has not appeared under other paragraphs. Save the document when the result looks right.
Common Mistakes
Choosing a top border instead of a bottom border: The Borders menu shows several edges and combinations. If the line appears above the heading, reopen the menu and choose Bottom Border. For a custom setting, verify the selected edge in the Borders and Shading preview before confirming.
Highlighting text and expecting a text-length rule: A paragraph border generally runs across the available paragraph width, even if the heading itself is short. That is normal. Use a line shape if you need a specific shorter length, or apply an underline if the goal is to mark only the heading characters rather than draw a separate rule.
Adding a border to the wrong paragraph: A click just above or below the heading may put the cursor in a neighboring blank paragraph. If the line appears in the wrong place, undo it with Ctrl+Z on Windows or Command+Z on Mac, click directly in the intended paragraph, and apply the border again.
Typing hyphens as a permanent fix: Word may turn three hyphens followed by Enter into a horizontal rule, depending on AutoFormat settings. That rule can behave like a paragraph border and may be difficult to select as ordinary text. Use the Borders menu when you want predictable formatting and easier control.
Using repeated underscores or spaces: Characters used to imitate a line can wrap, shift, or change length when the font or page layout changes. A paragraph border or shape is more stable and easier to maintain.
Tips
If you use Word’s built-in heading styles, apply the border to the heading paragraph rather than manually drawing a line each time. For a document with many section headings, you can modify the heading style so new paragraphs using that style inherit the same border. In the Styles gallery, right-click the relevant style, choose Modify, and use the formatting options to set a bottom border. Check a few pages after changing a style, because every paragraph using it may be affected.
Keep the line visually consistent with the document. A thin neutral rule usually supports a heading without competing with it. If you customize the width or color, consider whether the line remains clear when printed in grayscale. A border’s length follows the paragraph layout, so it will generally adjust if margins or page width change; a drawn shape may need repositioning.
For a page header, remember that documents can have different headers for the first page, odd and even pages, or separate sections. A line added to one header may not automatically appear in all of them. If it is missing on some pages, check the header settings and the section boundaries rather than inserting duplicate lines in the body.
Use Undo soon after an unwanted change. If a line is already in place and you want to remove it, click in the paragraph that has the border, open Home > Paragraph > Borders, and choose No Border. This removes paragraph borders from that paragraph, so first confirm the cursor is in the right one.
Troubleshooting
The Bottom Border option is missing: Confirm that you are on the Home tab and looking in the Paragraph group. If Word’s window is narrow, the group may be condensed. Expand the window or open the group’s additional controls. On Mac, the same border choices are available from the Home tab’s paragraph formatting controls, though their position may differ from Windows.
The line appears under every heading or too many paragraphs: Check whether you changed a style rather than applying a border to one paragraph. If the formatting came from a style, modify that style to remove the border or restore the prior setting. If you used the Borders menu directly, click in each affected paragraph as needed and choose No Border. Use Undo if the change was just made.
The line is too long, too short, or uneven: A bottom paragraph border is designed to span the paragraph width. If you require an exact length or a line that does not move with the paragraph, delete the border and use a line shape. For a shape, use the drawing handles to adjust its length and inspect it in Print Layout; shapes can shift when text or page layout changes.
The line does not show on every page: If it belongs to a repeating header, open the header on a page where it is absent. Look for settings such as Different First Page, odd and even page headers, or a section break that starts a new header. Headers in a new section may be separate unless they are linked to the previous section.
The line is there but has an unwanted gap: Paragraph spacing and the space between the heading and its following paragraph affect the appearance. Adjust the heading’s spacing gradually in the Paragraph settings. Avoid pressing Enter repeatedly, because extra paragraphs can create additional borders or produce inconsistent spacing when the document changes.
Frequently Asked Questions
Does a bottom border move with the heading?
Yes. A paragraph border belongs to the paragraph, so it moves with that paragraph as text is edited or the page layout changes. A line shape is positioned separately and may need adjustment.
Can I make the line stop at the end of the heading text?
Not with a standard paragraph bottom border; it normally spans the available paragraph width. Use an underline for a rule directly beneath the characters, or insert and resize a line shape for a separate rule of a chosen length.
How do I remove the line without deleting the heading?
Click in the paragraph with the line, then choose Home > Paragraph > Borders > No Border. The heading text remains. If other borders on that paragraph should stay, use Borders and Shading to turn off only the bottom edge instead.
Will the line appear on every page?
A border on a body heading appears only with that heading. A border in a repeating page header appears on pages using that header, but first-page, odd/even, or section-specific header settings can make headers differ.
Is this different in Word for Mac?
The basic method is the same: put the cursor in the paragraph and use the Home tab’s Borders controls to apply a bottom border. The ribbon layout can differ, and the Mac equivalent of Ctrl+Z is Command+Z. Double-clicking the top of the page is also a quick way to edit a page header.
Related
- Where Did Undo and Redo Go in Excel?
- think-cell in Excel: Find the Ribbon Tab and Data Links
- What Number Is Column B in Excel? Meaning and Uses
Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.
More in How-to basics
- How to Create a Mail Signature in Outlook on Any DeviceTo create a mail signature in Outlook, open the signature settings for the account you use, create and…
- Schedule an Email Reminder in Outlook: Step-by-StepTo get a reminder to follow up on an Outlook email, flag the message and set a reminder…
- Excel Table Color Not Changing? Common Causes and FixesIf an Excel table’s color is not changing, select a cell inside the table, open Table Design, and…
- Hide Gridlines in Excel: Keyboard Shortcut and StepsIn Excel for Microsoft 365 on Windows, press Alt, then W, V, and G in sequence to hide…
- Cover Page in Word: How to Insert, Edit, and Remove ItIn Microsoft Word for Microsoft 365 on Windows, select Insert > Cover Page, then choose a design; Word…
- How to Add a Shared Mailbox to Outlook on Any DeviceTo add a shared mailbox in Outlook, first ask your Microsoft 365 or Exchange administrator to grant your…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.