To add a neat horizontal line in Word, place the cursor in an empty paragraph and type three hyphens (—), then press Enter; Word turns them into a straight paragraph border. For a line you can position or resize freely, choose Insert > Shapes > Line and drag across the page. The best method depends on whether the line should divide text or act as a movable graphic.
What You’ll Need
- Microsoft Word for Microsoft 365 on Windows, or a recent desktop version of Word. The ribbon wording can differ slightly in older releases.
- A document open at the place where you want the line. Save a copy first if you are making substantial layout changes.
- For the automatic hyphen method, the AutoFormat setting for border lines must be enabled. If it is not, use the ribbon method instead.
Step-by-Step
- Choose the kind of line you need. For a simple separator that stretches between the paragraph margins, use Word’s automatic border line or the Borders menu. This type belongs to a paragraph, not to the page as a separate object. For a line that must sit at a particular angle or position, use a line shape; it can be selected, moved, and formatted independently.
- Place the insertion point. Click at the end of the paragraph above the intended divider, then press Enter to create a new, empty paragraph. If you want the line below a heading, click after the heading and press Enter. The automatic border method applies to the paragraph where the cursor is, so avoid placing it in the middle of text you do not want affected.
- Insert a quick automatic line. In the empty paragraph, type three hyphens in a row, with no spaces, and press Enter. Word should replace them with a thin horizontal border spanning the paragraph width. You can use three underscores for a heavier line, three equals signs for a double line, or three tildes for a wavy line, then press Enter. The exact appearance can vary with Word settings and version.
- Use the ribbon if the shortcut does not work. Click in the paragraph where the line should appear. On the Home tab, find the Paragraph group and open the Borders menu using its small dropdown arrow. Choose Horizontal Line if that option appears. In some Word versions or ribbon layouts, the menu may show border choices without that entry; choose Bottom Border to place a clean rule beneath the current paragraph. The border dropdown icon is usually shown as a small square divided by lines.
- Make a freely positioned line with a shape. Select Insert > Shapes, then choose the straight-line option in the Lines section. Move the pointer to the line’s starting point, click and drag to its endpoint, then release. Hold Shift while dragging to constrain the shape to a horizontal, vertical, or 45-degree direction. This is useful when the line must not span the full text width or must sit beside a diagram.
- Adjust the line’s look. For a shape, click the line to select it and open the Shape Format tab. Use Shape Outline to choose a color, weight, or dash style. For a paragraph border, click in the paragraph and open Home > Paragraph > Borders > Borders and Shading, if available. In the dialog, choose a line style, color, and width, and apply the setting to the paragraph. A paragraph rule generally takes its width from the paragraph’s text area and indents.
- Check the result in context. Look at the line with the paragraphs above and below it. If it is too close to text, adjust paragraph spacing using Layout > Spacing or the Paragraph dialog, rather than adding several blank lines. If a shape moves unexpectedly, select it and check its layout options; choose an appropriate text-wrapping setting, or use the layout icon beside the shape to position it relative to the text.
Common Mistakes
Using repeated underscores as a permanent divider. Typing a long row of underscores may look like a line at first, but the characters can wrap, shift when fonts change, or print unevenly. Use a paragraph border for a divider or a line shape for a graphic.
Expecting the automatic border to behave like a shape. The hyphen shortcut makes a border attached to a paragraph. It does not create a separate object with drag handles. If you click the line and cannot select it as a shape, that is normal. Click in the paragraph and edit its border, or undo it and insert a line from Shapes instead.
Adding the border to the wrong paragraph. A border applies to the paragraph containing the insertion point, which can include a heading or text paragraph. If the rule appears above or below an unexpected block, undo it and create an empty paragraph at the correct location before inserting the line.
Pressing Enter repeatedly to make space. Extra blank paragraphs can create inconsistent gaps and may split across pages. Set paragraph spacing or adjust the shape’s position instead. Also avoid dragging a shape without selecting it first: you may select text or reposition the cursor rather than move the line.
Tips
- Use a paragraph border for section dividers in reports, letters, and forms. It follows the text flow and is usually easier to keep aligned when editing.
- For a rule that should match a heading width, put the cursor in the heading paragraph and apply a bottom border. To avoid an unwanted line above or below the wrong text, confirm the cursor is in the intended paragraph first.
- Use a line shape for callouts, charts, signature marks, or page designs where you need precise positioning. Hold Shift while drawing for a level horizontal rule, then use the arrow keys for small adjustments after selecting it.
- Keep decorative rules consistent. Reuse the same color and weight throughout a document, and avoid a line so dark or thick that it competes with headings.
- Show paragraph marks when diagnosing layout problems. On Windows, use Home > Paragraph > Show/Hide (¶). This reveals paragraph breaks and helps identify which paragraph owns a border. On Mac, use the Show/Hide button on Home or the equivalent formatting-marks control.
- Undo is the quickest fix immediately after an unwanted automatic line: press Ctrl+Z on Windows or Command+Z on Mac. If you have continued editing, use the Borders menu to remove the paragraph border instead.
Troubleshooting
The three hyphens remain as text. The automatic formatting feature may be disabled, or Word may not recognize the characters as a border trigger. Open File > Options > Proofing > AutoCorrect Options > AutoFormat As You Type on Windows, then enable Border lines and select OK. On Mac, open Word > Preferences (or Settings, depending on version) > AutoCorrect, then look under AutoFormat As You Type for the border-lines option. If the setting is unavailable or you prefer not to enable it, use Home > Paragraph > Borders to apply a bottom border.
The line is too short or too long. A paragraph border follows the paragraph’s available width, including its indentation. Check the paragraph’s left and right indents, or use a shape and drag its endpoints to the desired width. A shape’s length may also look different if it is drawn at an angle or constrained incorrectly.
The line appears in the wrong place or repeats. A border may be attached to the paragraph before or after the one you expected. Turn on paragraph marks, click in the affected paragraph, and inspect the Borders menu. Use No Border to remove the unwanted rule, then apply the intended border to the correct paragraph. If multiple paragraphs have borders, check each one separately.
The shape moves when you edit nearby text. Shapes may be anchored to a paragraph and can move with that anchor, especially when text wrapping is enabled. Select the line, open its Layout Options, and review the wrapping and position settings. For a line that should stay in the text flow, choose an inline layout if available; for independent placement, set wrapping deliberately and keep the anchor near the relevant content.
The line is visible on screen but prints poorly. Increase the shape’s outline weight or choose a darker color. For a paragraph border, open Borders and Shading and choose a more visible width. Preview the page with File > Print before printing or exporting to PDF, since a very thin, pale rule may be hard to see on paper.
Frequently Asked Questions
How do I insert a straight horizontal line in Word?
In a blank paragraph, type three hyphens and press Enter if automatic border lines are enabled. Alternatively, use Insert > Shapes > Line and hold Shift while dragging.
How do I make the line thicker?
For a shape, select it and choose Shape Format > Shape Outline > Weight. For a paragraph border, use Home > Paragraph > Borders and Shading, then choose a heavier width.
How do I remove a line created with three hyphens?
Click in the paragraph immediately above the line and open Home > Paragraph > Borders. Choose No Border. If you just inserted it, Ctrl+Z on Windows or Command+Z on Mac may undo it immediately.
Can I change the color of a horizontal line?
Yes. Select a line shape and use Shape Format > Shape Outline. For a paragraph border, open Borders and Shading and choose a color before applying the border.
Why does the line extend across the whole page?
A paragraph border spans the paragraph’s available text width, not just the characters in that paragraph. Adjust the paragraph indents or use a line shape if you need a shorter rule.
Does the hyphen shortcut work in Word for Mac?
It can, provided the AutoFormat As You Type border-lines setting is enabled. If it does not, apply a border from the Home tab or insert a line using Insert > Shapes.
Related
- Excel Zoom Bar: How to Change Worksheet Magnification
- XL Number in Excel: Column 636 or Roman 40 Explained
- XFD Column Number in Excel: What 16,384 Means
Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.
More in How-to basics
- Excel Dialog Box Not Responding? Causes, Fixes and HelpIf an Excel dialog box is not responding, first check whether it is simply hidden behind another window…
- Open Notepad with Excel: Use Both or Import Text FilesYes—you can open Notepad while Excel is running and use the two programs side by side. If you…
- Add a Header to a Word Document in Microsoft 365To add a header in Word for Microsoft 365 on Windows, open the document and choose Insert >…
- Show Unread Emails in Outlook and Keep Them VisibleTo show only unread emails in Outlook, open the inbox or folder you want to check and apply…
- Google Sheets Count If Not Blank: Formulas and FixesTo count cells that are not blank in Google Sheets, use =COUNTA(A2:A100), replacing the range with your own.…
- How to Do Columns in Microsoft Word: A Practical GuideTo make columns in Microsoft Word, place the cursor where you want them, choose Layout > Columns, and…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.