Home
How to Remove the Persistent Horizontal Line in Microsoft Word That Wont Delete
Microsoft Word users frequently encounter a frustrating phenomenon: a horizontal line appears across the page, seemingly out of nowhere, and refuses to be selected or deleted using the Backspace or Delete keys. This issue typically occurs after typing three hyphens (---), underscores (___), or equal signs (===) and pressing Enter. Because Microsoft Word interprets these characters as a command to format the document, the resulting line is not text, but a graphic element tied to the paragraph's formatting.
To resolve this immediately, place the cursor directly above the line, navigate to the Home tab, locate the Paragraph group, click the small arrow next to the Borders button, and select No Border. This action removes the automatic paragraph border that caused the problem.
Why the Delete Key Fails to Remove Horizontal Lines
Understanding why a standard deletion method fails requires a look into Word's "AutoFormat As You Type" feature. When three specific symbols are followed by a carriage return, Word assumes the user wants a divider line. Instead of drawing a simple line object, it applies a bottom border to the paragraph immediately preceding the cursor.
Because this line is a "Border" attribute of a paragraph, it does not occupy a character space. If the user attempts to click on the line, the cursor will either jump above or below it. Selecting the area around the line and hitting delete often only moves the paragraph, carrying the border along with it to the next line. This creates a recursive frustration where the line seems to "teleport" rather than disappear.
How to Remove Automatic Paragraph Borders
The most common culprit is the automatic border. These lines are dynamic and span the entire width between the left and right margins.
Using the Borders Menu
The most reliable way to clear these lines is through the ribbon interface:
- Position the flashing cursor in the text paragraph immediately above where the line is visible.
- Go to the Home tab on the top ribbon.
- In the Paragraph section, look for the Borders icon (resembling a square window or grid).
- Click the drop-down arrow next to this icon.
- Select No Border.
If the line persists, it may be attached to the paragraph below. Move the cursor to the line below the horizontal divider and repeat the process, again selecting No Border.
Using the Clear Formatting Tool
If the border menu feels cumbersome, the Clear All Formatting button is an alternative.
- Select the paragraph above and below the line.
- On the Home tab, in the Font group, click the icon that looks like an 'A' with a pink eraser.
- Note that this will also reset font styles, sizes, and colors to the document's default "Normal" style.
How to Prevent Word from Automatically Creating Lines
For users who find this feature more annoying than helpful, it can be disabled permanently in the software settings. This prevents the "three hyphens and enter" trigger from functioning.
- Click the File tab in the top-left corner and select Options at the bottom of the sidebar.
- In the Word Options dialog box, select Proofing from the left-hand menu.
- Click the AutoCorrect Options... button.
- Navigate to the AutoFormat As You Type tab.
- Under the "Apply as you type" section, uncheck the box labeled Border lines.
- Click OK on both windows to save the changes.
After disabling this, typing three hyphens will simply result in three hyphens on the screen, allowing the user to maintain manual control over document dividers.
Removing Lines Inserted as Shapes or Horizontal Line Objects
Not every line in Word is a paragraph border. Sometimes, lines are actual drawing objects or specific "Horizontal Line" elements inserted via the menu. These require different selection techniques.
Selecting Drawing Objects
If clicking above the line does not allow you to remove a border, the line might be a Shape.
- Try clicking directly on the line. If small circular "handles" appear at the ends of the line, it is a drawing object.
- Press the Delete key on your keyboard once the handles are visible.
- If you cannot click the line because it is behind text, go to the Home tab, click Select in the Editing group, and choose Selection Pane.
- In the Selection Pane that appears on the right, look for items named "Straight Connector" or "Line." Click the item in the list and press Delete.
Removing the Horizontal Line Graphic
Word has a specific "Horizontal Line" command in the Borders menu that inserts a graphic object rather than a border.
- Double-click the line to see if a "Format Horizontal Line" dialog box appears.
- If it does, click once on the line so it is highlighted (usually a gray box appears around it) and press Delete.
How to Remove Lines in Headers and Footers
Lines that appear at the very top or bottom of every page are typically embedded within the Header or Footer layer. These cannot be edited or removed from the main body of the document.
- Double-click near the top or bottom of the page to enter the Header & Footer editing mode.
- Once the header/footer is active, check if the line is a paragraph border (use the No Border method described earlier).
- Check if it is a shape (use the Selection Pane).
- Sometimes, a line in the footer is actually a Footnote Separator. If you have footnotes on the page, the line is automatically generated by Word.
Troubleshooting Footnote and Endnote Separator Lines
In academic or formal reports, a short horizontal line often appears above footnotes. If this line looks displaced or you wish to remove it, you must enter a specific view mode.
- Go to the View tab and select Draft.
- Go to the References tab and click Show Notes.
- A pane will open at the bottom of the screen. In the dropdown menu within this pane, select Footnote Separator.
- The line will appear in the pane. You can now select it and delete it, or modify its length.
- Change the dropdown to Footnote Continuation Separator and repeat the process if necessary.
- Switch back to Print Layout view to see the results.
Dealing with Lines Caused by Table Borders
If your text is inside a table, the line you see might be a cell border. Even if you have hidden the table gridlines, the borders may still print and appear in the document.
- Click anywhere near the line to see if the Table Design and Layout tabs appear in the ribbon.
- If they do, click the Table Selector icon (the small four-way arrow at the top-left of the table).
- In the Table Design tab, click the Borders dropdown and select No Border.
- If you only want to remove one specific line, use the Border Painter or select the specific cells and adjust the borders for those cells only.
Identifying Lines Through the Reveal Formatting Pane
When you encounter a line that seems invisible to all the above methods, the Reveal Formatting pane is the professional's tool for diagnosis.
- Select the text immediately surrounding the mysterious line.
- Press Shift + F1 on your keyboard.
- A task pane will open on the right side of the screen, listing every formatting attribute applied to that text.
- Look under the Paragraph heading for a section labeled Borders.
- This pane will tell you exactly which side of the paragraph has a border applied (Top, Bottom, Left, or Right) and its thickness. Clicking the blue "Borders" link in this pane will take you directly to the dialog box needed to remove it.
What to Do If a Line Only Appears When Printing
Occasionally, a document looks perfect on the screen, but a thin horizontal line appears across the page when printed. This is rarely a formatting issue and more likely a hardware or driver problem.
- PDF Test: Save the document as a PDF. If the line is visible in the PDF, it is a digital formatting issue (likely a very thin paragraph border or a stray drawing object).
- Print Preview: Check the Print Preview screen. If the line is not there, the issue lies with the printer's drum or ink/toner cartridge.
- Gridlines: Ensure that "Gridlines" are not enabled in the Layout tab, as some PDF converters may mistakenly render these as solid lines.
Summary of Line Removal Techniques
| Line Type | Identification | Primary Removal Method |
|---|---|---|
| Auto-Border | Spans margin to margin; cannot be clicked. | Home > Borders > No Border |
| Shape/Object | Has "handles" when clicked. | Select and press Delete key. |
| Table Border | Appears near table cells. | Table Design > Borders > No Border |
| Footnote Separator | Above footnotes at bottom of page. | Draft View > Show Notes > Delete Separator |
| Page Break | Often seen in Draft view as a dotted line. | Place cursor at start of line and press Delete. |
Frequently Asked Questions
Why does the line come back after I delete the paragraph?
If the line is a paragraph border, it is attached to the "paragraph mark" (the invisible symbol at the end of every paragraph). If you delete the text but keep the paragraph mark, the border stays. If you merge that paragraph with the one below it, the border might transfer. Always use the "No Border" setting to ensure the attribute is cleared from the paragraph's metadata.
Can I remove all horizontal lines in a long document at once?
Yes, using the Find and Replace feature with formatting options.
- Press Ctrl + H.
- Click More >> to expand the options.
- Click inside the Find what box (leave it empty).
- Click Format at the bottom, then select Borders.
- Choose the line style that matches your unwanted line.
- In the Replace with box, click Format > Borders and select None.
- Click Replace All. Use this with caution, as it may remove intentional borders.
Why is there a line I can't click in the header?
It is almost certainly a paragraph border applied to the header style. Double-click the header to enter edit mode, select the header text, and use the No Border tool. Many built-in Word templates include a bottom border in the header design by default.
Does pressing Ctrl+Z work?
Only if you catch it immediately. If you type --- and press Enter, Word converts it to a line. If you immediately press Ctrl + Z, Word will undo the "AutoFormat" but keep your three hyphens. If you perform other actions after the line appears, Ctrl + Z will undo those actions instead of removing the line.
Conclusion
The "immortal" horizontal line in Microsoft Word is a classic example of a helpful feature becoming a hindrance. By recognizing that these lines are usually Paragraph Borders rather than physical objects, you can skip the frustration of trying to "delete" them and instead use the Borders menu to toggle them off. Whether the line is a result of AutoFormat, a stray shape, or a footnote separator, the key is identifying the underlying element. For a cleaner writing experience, disabling the "Border lines" option in the AutoCorrect settings is the best long-term solution for most users.
-
Topic: Remove a line in Word | Microsoft Supporthttps://support.microsoft.com/en-us/word/remove-a-line-in-word
-
Topic: How To Remove Line In Microsoft Wordhttps://ms.codes/blogs/microsoft-office/how-to-remove-line-in-microsoft-word
-
Topic: How To Get Rid Of A Line In Microsoft Wordhttps://ms.codes/blogs/microsoft-office/how-to-get-rid-of-a-line-in-microsoft-word