How to delete horizontal lines in Word header: The line at the top cannot be removed
The horizontal line at the top of the header is usually the lower border of the paragraph, and will remain even if the header text is deleted. This article explains its origin, gives the steps to clear borders, handle multiple sections and template styles in Word, and explains how to check after deletion.
Key points of this article
- The horizontal line at the top of the header is mostly the lower border of the last paragraph in the header. After deleting the text, the paragraph is still there and the line is retained.
- The idea is to clear paragraph borders instead of continuing to delete text. Text and borders are two settings.
- If the document is divided into sections, the header of each section must be checked separately, otherwise changing only one section will leave lines in other sections.
- If the line is a graphic that can be clicked individually, delete the graphic directly; if it comes from a template style, change the style itself so that it does not reappear.
Many people delete the text in the header, but there is still a horizontal line at the top. If they change the page and look at it, it is still there, so they think it was not deleted completely, and deleting the text repeatedly has no effect. This line is usually not text, but the lower border of the header paragraph. After the text is deleted, the paragraphs remain and the borders remain.
This article is written for people who edit papers, reports, and contracts in Word to explain clearly where this horizontal line comes from, how to delete it in Word, and how to check after deletion. This article only deals with the horizontal line at the bottom of the header. The lines next to the page numbers and the lines in the footer have similar processing ideas, but the sources may be different, and will be explained separately in the article. After reading this, you should be able to identify what the line in your hand is and delete it.
How to delete the horizontal line in the header? One sentence conclusion
The header line cannot be deleted. The common reason is that it is deleted as text. The table below can help you find your seat.
| your situation | Recommended practices | reason |
|---|---|---|
| After deleting the header text, the line is still there | Enter header editing and clear the lower border of the last paragraph | The line belongs to the paragraph border. If the text is deleted, the paragraph will still be there. |
| The header of each section is underlined, only one section has been changed | Check section by section, and if necessary, cancel "link to previous section" and process them separately. | Each section header may have its own border set |
| Lines can be clicked and dragged individually | Delete this graphic directly after selecting it | It's not a paragraph border but a shape or text box |
| A line next to the footer or page number | Enter the footer editor and use the same method to clear the border | The footer is also a paragraph, and the borders are set in the same way. |
| If you want to keep the header text, just remove the horizontal lines | Do not delete text, just set paragraph borders to None | Only the border is changed, the header content is not affected |
Before you start: Confirm these points first
Spending a minute or two to judge before taking action can avoid deleting the wrong things and avoid detours.
- Confirm the type of line. The horizontal line in the header is usually located immediately below the header text. When you point the cursor in, you can see that it belongs to a certain paragraph. If the lines can be individually selected and dragged, it is a graphic and is handled differently.
- Confirm whether the document is divided into sections. Papers and reports are often divided into chapters. The headers of different sections may be linked to each other or may be set separately. Only the current page will be changed, and the lines in other sections will remain.
- Save a separate copy first. It is not easy to completely undo changes to borders and styles. Keep the original files so you can compare them if there is a problem.
- Turn on paragraph mark display. You can see the symbol of the empty paragraph, which makes it easy to confirm the paragraph where the cursor is located and determine which paragraph the line is under.
- Pay attention to the template source. If it appears again after deleting it, it is probably because the header style in the template has a border. It will only be deleted in the current document and will be restored when a new paragraph is created.
Steps to delete the horizontal line at the top of the header in Word
The following steps apply to most header lines. Do it in order and stop when the line has disappeared.
- Enter the header editing state. Double-click the header area at the top of the page, the header text will become editable, and the main text will become lighter.
- Delete header text and redundant blank lines. Delete unnecessary text and blank lines, leaving only one paragraph, and place the cursor in this paragraph.
- Confirm which paragraph the line belongs to. Display paragraph mark to see if the horizontal line is under the paragraph where the cursor is located. If yes, proceed to the next step.
- Clear the bottom border of the paragraph. Open the paragraph's border settings and select no border, or just cancel the bottom border. This step will remove the horizontal lines and keep the text.
- If the line is still there, change the paragraph style back to the text. The header style may come with a lower border. After changing back to the text style, the customized border will be cleared.
- Exit header editing and check section by section. Go back to the main text and scroll through the document to see if there are lines at the top of the headers of each section. If divided into sections, repeat steps 1 to 5 for each section.
Check each item after completion
Don’t rush to save it after deleting it. Please read it item by item according to the table below.
| Check items | How to see | What to do if there is a problem |
|---|---|---|
| Header top | After exiting editing, check page by page to see if there are still lines at the top | If there is still a line, re-enter the header and check the last paragraph |
| Section header | Double-click the header in each section to confirm the border status | In case of inconsistency, cancel the link to the previous section and handle it separately. |
| header text | Is the text that needs to be retained still there? | If you delete it by mistake, undo it. Only the border will be changed and the text will not be deleted. |
| Page numbers and footers | Is the page number still displayed as it is? | Page numbers or footers are affected, recheck the borders of footer paragraphs |
| Export or print preview | Export to PDF or print preview to see if the lines still appear | Not visible on screen but wired output, check paragraph settings and styles |
If you do not have Word installed, you can also use UniDoc web editor (app.unidoc.top) to open the docx file, view and edit the header. The final effect of the header is still subject to the display in Word. It is recommended to confirm it again in Word before officially submitting it.
❓ Frequently Asked Questions (FAQ)
1. After deleting the header text, the horizontal line is still there. Did it not be deleted completely?
uncertain. The horizontal line is usually the lower border of the last paragraph in the header. After the text is deleted, the paragraph is still there, and the border is retained. At this time, you should clear the paragraph borders instead of continuing to delete text.
2. Are the lines next to page numbers the same as the horizontal lines in the header?
no the same. The line next to the page number may come from a footer paragraph border, page number formatting decoration, or a text box. Before processing, click to confirm which category it is, and then decide which method to use.
3. How to delete a line in the footer?
The method is the same as for headers. Double-click the footer area to enter editing, find the last paragraph of the footer, and clear its lower border. If the document is divided into sections, the footer should also be checked section by section.
4. What should I do if it reappears next time I open it after deleting it?
Mostly templates or paragraph styles with borders. Change the paragraph style back to the text style, or cancel the lower border of the header style in the style settings, and then check whether horizontal lines still appear in the new paragraph.
5. The line only appears in a certain section but not in other sections. Why?
This is usually caused by segmentation. The header of a certain section may have canceled the "link to the previous section" and set a separate border. Go to the header section by section, find the section with lines, and clear the border alone.
📝 Summary
The horizontal line at the top of the header is mostly the lower border of the paragraph, and deleting text will not remove it. Enter header editing, clear the border of the last paragraph, and then check section by section to delete the horizontal lines.


