Word tasks · Layout
Insert a horizontal line in Word and Google Docs
A horizontal line separates a title from the body, a form section from the next one, or a signature block from the terms above it — in seconds, with no drawing tools. This guide covers the fast typed line in Word, the built-in line in Google Docs, the paragraph border to use when you need real control over weight and color, and how to remove a line Word created on its own.
The fast line in Word
The quickest divider in Word is typed, not inserted. Microsoft describes this route in its help on adding a horizontal line: put the cursor on its own line, type three characters, and press Enter. Word converts them into a line that stretches across the page width.
- Click on an empty paragraph. Place the cursor at the start of a blank line where the divider should sit, between the paragraphs it separates.
- Type three dashes and press Enter. Type --- and press Enter for a plain single line. Other triples give other styles: === for a double line, *** for a dotted line, ___ for a bold line, ### for a triple line, and ~~~ for a wavy line.
- Keep typing below it. Word starts a new paragraph under the line. The line itself is a border on the paragraph above it, which is why the removal steps below work the way they do.
A typed line is not a picture or a drawing object — you cannot click it and drag it. It is a bottom border attached to a paragraph, so it moves when that paragraph moves and it is changed or removed through Borders, not through the line itself. If you need to click and position a line freely, use Insert > Shapes > Line instead, and accept that it will not reflow with the text.
Insert a line in Google Docs
Google Docs has a dedicated command, so there is no typing trick to remember.
- Place the cursor where the line goes. Click at the end of the paragraph above the break, or on a blank line of its own.
- Choose Insert > Horizontal line. A gray line appears across the full width of the text area at the cursor.
- Adjust the spacing around it. The line takes the paragraph spacing of its surroundings. To add air above or below, click in the neighboring paragraphs and adjust Format > Line & paragraph spacing, rather than adding strings of empty paragraphs.
- Delete it like a character. Click just after the line and press Backspace, or just before it and press Delete. A Docs horizontal line behaves like a large character in the text flow.
Use a paragraph border for a line you control
When the line needs a specific color, weight or style — a brand color under a heading, a heavier rule above a signature block — skip the typing trick and add a bottom border directly. This is the same family of settings as page borders, applied to one paragraph instead of the page.
- Select the paragraph the line sits under. Click anywhere in the paragraph above where the line should appear — for a heading divider, click in the heading itself.
- Open Home > Borders > Borders and Shading. The Borders button is in the Paragraph group on the Home tab. Choose Borders and Shading at the bottom of its menu.
- Set style, color and width, then click the bottom edge. On the Borders tab, pick a Style, Color and Width, then click the bottom edge of the Preview diagram so only that edge is bordered. Leave Apply to on Paragraph.
- Select OK and check the gap. The line hugs the paragraph. If it sits too close to the text, use the Options button in the dialog to add a few points of spacing between the text and the border.
In Google Docs, the equivalent control is a paragraph border: select the paragraph, open Format > Paragraph styles > Borders and shading, and enable only the bottom border with the width, color and padding you want.
Remove a line, including an automatic one
The line people cannot delete is almost always the automatic one: you typed three dashes for emphasis, pressed Enter, and Word replaced them with a border you never asked for. Because it is a border, selecting the line and pressing Delete does nothing.
- Undo it immediately, if you just typed it. Press Ctrl+Z right after the line appears and the three characters come back. An AutoCorrect Options button also appears near the line, offering Undo Border Line and Stop Automatically Creating Border Lines.
- Remove it later through Borders. Click in the paragraph directly above the line, then choose Home > Borders > No Border. The line disappears and the paragraph text stays.
- Turn the feature off for good. In Word for Windows, go to File > Options > Proofing > AutoCorrect Options, open the AutoFormat As You Type tab, and clear Border lines under Apply as you type. Typed triples then stay as plain characters.
End state
- A line runs across the text width exactly where you placed it, in the style you chose — single, double, dotted, bold or colored.
- The line moves with its paragraph when text above it is added or removed, and no stray typed characters remain on the line above or below.
- You can remove the line in one step through No Border (Word) or Backspace (Google Docs), proving it is a real divider and not typed dashes.
When it goes wrong
- The three dashes stay as dashes. The automatic formatting option is off, or the dashes are not alone on their paragraph. Put them on a blank line by themselves and press Enter — or use the paragraph border route, which works regardless.
- The line cannot be selected or deleted. It is a paragraph border, not an object. Click in the paragraph above it and choose Home > Borders > No Border.
- The line is the wrong width for the page. A paragraph border always spans the paragraph, including any indent. Remove left or right indents from that paragraph if the line should run margin to margin.
- A line appears every time you type dashes. Clear Border lines in AutoCorrect Options > AutoFormat As You Type, as described above.
Related document tasks
-
Add, reply to and resolve comments in Word and Google Docs
Pin a note to the exact words, reply in the thread, and resolve it when the point is settled, in Word and in Google Docs.
-
Change the page color in Word and Google Docs
Change the page color in Word with Design > Page Color and in Google Docs with File > Page setup, and control whether the color prints with Word's Print background colors and images option.
-
Convert a Word document to Google Docs format and bring it back without losing formatting
Sometimes the editing happens in Google Docs and the finished file has to be a Word document again — a collaborator works in Docs, the client expects .docx.
-
Export a Google Docs file to Word or PDF
Download a Google Doc as a Word file or a PDF, then check the fonts, tables and page breaks that can shift.
Sources
- Microsoft Support, Add a horizontal line — the typed-character lines in Word, the styles each triple produces, and removing a line with No Border.
- Microsoft Support, Add or remove page borders — the Borders and Shading dialog used for the controlled paragraph-border route.
- Google Support, Add a horizontal line, page break, or section break in Google Docs — the Insert > Horizontal line command in Google Docs.