How to Convert a Word Table of Contents to a Left-Side HTML Navigation Pane
Question details
The user needs to convert a large Word document into an HTML webpage where the table of contents functions as a left-side navigation pane while the main text appears on the right.

- Product
- Microsoft Word
- Device & OS
- not provided
- Scenario
- Creating a web-friendly version of a lengthy document with a fixed, accessible navigation menu for better readability.
- Observed behavior
- When exporting to HTML, Word generates a single-column layout, placing the Table of Contents inline at the top of the page rather than in a split-pane view.
Ensure your Word document uses standard Heading styles and contains a properly generated, clickable Table of Contents before exporting it to a web page format.
Export to HTML and Use CSS to Create a Split Layout
Since Word does not natively support exporting to a two-column HTML layout, you must manually edit the exported HTML file using a code editor to add layout styling.
Microsoft Word's 'Save as Web Page' feature creates a standard, single-column HTML file. To achieve a modern layout with a static navigation pane on the left, you will need to separate the TOC and document content using HTML containers and apply CSS properties like Flexbox.
Open your document in Word, click 'File' > 'Save As', choose your destination folder, and select 'Web Page (*.htm; *.html)' from the 'Save as type' dropdown menu.
Locate the saved HTML file and open it using an HTML code editor, such as VS Code, Notepad++, or Adobe Dreamweaver.
Find the section containing your Table of Contents and wrap it in a `<div id="sidebar">` tag. Wrap the remaining document text in a `<div id="main-content">` tag.
Add CSS rules within a `<style>` block in the `<head>` section. Apply `display: flex;` to the parent body tag, and assign a fixed width (e.g., `width: 300px;`) to the sidebar div so it remains anchored on the left side.

Experience Seamless Document Creation with WPS Office
While complex HTML exports often require manual coding regardless of your word processor, WPS Office provides a lightweight, highly compatible, and free alternative to Microsoft Office for writing, formatting, and organizing large documents perfectly before web conversion.

Frequently Asked Questions
Can Word automatically create a multi-frame HTML site?
No, modern versions of Microsoft Word export HTML as a single, continuous page. The legacy 'Frames' feature is no longer supported for standard web exports, so a multi-column or split-pane layout requires manual CSS adjustments or third-party web tools.
Why do the links in my exported HTML Table of Contents not work?
This usually happens if the Table of Contents was typed manually rather than dynamically linked in the original Word document. Ensure you use the 'References' > 'Table of Contents' tool in Word to generate it so that hyperlink anchors are preserved in the HTML export.
Is there a non-coding way to convert a Word doc to a left-navigation web page?
Yes, you can use specialized third-party help authoring software like MadCap Flare, RoboHelp, or specific Word-to-HTML converters. These tools offer built-in templates with left-side navigation panes, bypassing the need for manual HTML coding.




