How to Fix Word Headers and Footers Turning Into Lines in OneDrive
Question details
Users report that headers and footers in Word documents unexpectedly display as horizontal lines or tables when viewed or shared via OneDrive.

- Product
- Microsoft Word, OneDrive
- Device & OS
- not provided
- Scenario
- Opening, viewing, or sharing a formatted Word document in Word for the Web through OneDrive.
- Observed behavior
- The original header and footer text formatting is lost or replaced by solid lines and table borders in the web view.
Before making any formatting changes to your document, download a backup copy to your local drive to ensure you do not permanently overwrite the original layout.
Open the Document in the Word Desktop App
Word for the Web has rendering limitations for complex elements. Opening the file in the full desktop application usually restores the correct layout.
The web-based version of Microsoft Word simplifies document layouts to improve browser performance. This can cause elements like customized headers, footers, or embedded tables to render incorrectly as straight lines. Switching to the desktop application bypasses these web limitations.
Navigate to your OneDrive account in your web browser and click on the problematic document to open it in Word for the Web.
Look for the 'Editing' or 'Viewing' dropdown button located on the top ribbon of the interface.
Click 'Open in Desktop App' from the dropdown menu. When prompted, allow your browser to launch the Microsoft Word desktop application to view the full formatting.

Switch to Reading View in Word for the Web
Changing your view mode in the web app can force the document to display as it would when printed, restoring header visibility.
Remove Hidden Table Borders from Headers
If headers still look like lines in the desktop app, they may have been formatted using a table with unwanted borders.
Use WPS Office for Accurate Document Formatting
If Word for the Web continually breaks your document's layout, consider switching to WPS Office. It provides a robust, lightweight desktop experience that maintains strict compatibility with Microsoft Word formats, ensuring your headers and footers look exactly as intended without web-viewer distortions.
- 1. Download and Install: Visit the official WPS website to download and install the free WPS Office suite on your device.
- 2. Open Your Document: Launch WPS Writer and open your downloaded OneDrive document directly from your local drive.
- 3. Enjoy Perfect Formatting: View and edit your document; WPS Writer accurately displays Word headers and footers as originally intended.

Frequently Asked Questions
Why do my headers disappear or change when using Word for the Web?
Word for the Web uses a simplified editing view to improve browser performance. This view intentionally hides complex formatting like headers, footers, and columns until you switch to Reading View or print the document.
Does saving a document in OneDrive corrupt its formatting?
No. OneDrive simply stores the file data. The formatting changes you see are caused by the web-based document viewer (Word for the Web) interpreting the file layout differently than the desktop application.
How can I share a document on OneDrive without the layout changing?
To ensure the recipient sees the exact layout, save the document as a PDF before uploading it to OneDrive, or advise the recipient to download the Word file and open it in their desktop application rather than viewing it in the browser.




