How to remove the horizontal line above the header
In document editing or web design, horizontal lines in headers are often a headache. Many users will encounter questions about how to remove header horizontal lines when using Word, WPS or HTML/CSS. This article will give you a detailed answer to this question based on the hot topics and hot content on the Internet in the past 10 days, and provide structured data for reference.
1. How to remove header horizontal lines in Word/WPS

The following are common steps to remove header horizontal lines in Word and WPS:
| Operation steps | Detailed description |
|---|---|
| Method 1: Clear format | Select the header content → click the "Home" tab → select the "Clear Format" button (the icon is A and an eraser). |
| Method 2: Modify border settings | Double-click the header → select "Page Borders" in the "Design" tab → select "None" in the "Borders" setting. |
| Method 3: Style modification | Right-click the "Header" style → select "Modify" → cancel the border setting in "Format". |
2. How to remove header horizontal lines in HTML/CSS
In web design, header horizontal lines are usually controlled by the CSS border property. Here are common solutions:
| Technical solution | code example |
|---|---|
| Remove borders | header { border-bottom: none; } |
| Override default style | .header-class { border: 0 !important; } |
| Check parent element style | body >header { border-bottom-width: 0; } |
3. Popular related topics on the entire network (last 10 days)
According to the search data of the entire network, the following are the issues related to header lines that users are most concerned about recently:
| Ranking | Popular questions | search volume index |
|---|---|---|
| 1 | How to permanently delete horizontal header lines in Word | 8,500 |
| 2 | How to remove underline from WPS header | 6,200 |
| 3 | HTML header border style modification | 4,800 |
| 4 | The reason why header lines appear automatically | 3,900 |
| 5 | Changes in header settings in the new version of Office 365 | 3,500 |
4. Frequently Asked Questions
1.Why does the horizontal line still appear automatically after deleting it?
This is usually because the document uses templates or style inheritance. It is recommended to check if a specific template is applied to the document and completely modify the "Header" style settings.
2.What should I do if I can’t remove the horizontal lines in web design?
Maybe it's a CSS priority issue. Try using the developer tools to inspect the element to confirm the final applied style, and use !important to increase the priority.
3.Are WPS and Word operating methods the same?
Basically similar, but the WPS interface is slightly different. In WPS, you can directly select "Wireless" through the "Header Horizontal Line" button in the "Header and Footer" tab.
5. Advanced skills
For advanced users, you can also try the following:
1. Use Alt+F9 in Word to display the field code and directly edit the format control code of the header.
2. Create a custom header style and set it as default to avoid having to modify it every time you create a new document.
3. For HTML pages, you can consider using :before or :after pseudo-elements to replace traditional border designs.
Using the above methods, you should be able to easily resolve the problem of horizontal header lines. If you still have questions, it is recommended to refer to the official documentation or community forums of each software for more professional support.
check the details
check the details