To add a long horizontal line in Word, use Insert > Shapes > Line and drag across the page; hold Shift as you drag to keep it level. For a quick divider that follows the text width, type three hyphens on a blank line and press Enter. Choose a shape when you want control over placement and length, or the automatic border when you want a simple paragraph divider.
What You’ll Need
- Microsoft Word for Microsoft 365 on Windows, or a recent desktop version of Word. The ribbon labels can differ slightly in older releases.
- A document with enough horizontal space for the line. Word normally keeps text and shapes within the page margins, so check the margins if you need a particularly long line.
- Your preferred method: a drawn line for flexible placement, or a paragraph border for a fast divider that adjusts with the text area.
Step-by-Step
- Place the cursor in the right part of the document. Click where the line should appear. For a divider between paragraphs, click an empty paragraph between them, or create one by pressing Enter. For a line in a header or footer, open that area first by double-clicking it. The location matters because Word attaches lines to document content, and a shape can move when surrounding text changes.
- Choose whether you need a drawn line or a quick divider. Use a drawn line if it needs a particular length, position, color, or weight. Use the automatic method if a plain line across the text column is enough. The automatic method creates a paragraph border rather than a separate drawing object, which is often convenient for section breaks in ordinary text.
- For a drawn line, open the Shapes menu. On Windows, select Insert > Shapes, then choose the straight Line under the Lines options. In some ribbon layouts, Shapes appears in the Illustrations group. On a Mac, use Insert > Shapes and choose the straight-line option; the menu may display a slightly different arrangement depending on the Word release.
- Drag to set the line’s length and direction. Move the pointer to the intended starting point, press and hold the mouse button, and drag to the endpoint. Hold Shift while dragging to constrain the line to a horizontal direction. Release the mouse button before releasing Shift. To make the line longer, drag farther; to keep it centered, estimate equal space on each side or reposition it after drawing.
- Format or reposition the shape if needed. Click the line to select it. The Shape Format tab appears. Use Shape Format > Shape Outline to change its color or weight, and choose a thicker weight if the line needs to stand out. Drag an endpoint to adjust the length, or drag the selected line to move it. To remove it, select the line and press Delete or Backspace.
- For a quick automatic divider, start on an empty paragraph. Click at the beginning of a blank line where the divider should go. Type three hyphens in a row:
---. Do not add spaces between them. Press Enter. Word usually converts the hyphens into a horizontal paragraph border that runs across the text area between the margins. - Check the result and save the document. Confirm that the line is level, sits in the intended place, and does not overlap text. If you used a shape, click elsewhere to see how it looks when unselected. Save with Ctrl+S on Windows or Command+S on Mac. If the document will be printed or shared, check the line in Print Preview or export a PDF to confirm its appearance.
Windows and Mac note: The shape method and Shift-drag behavior are broadly similar in Word for Windows and Word for Mac. The Windows shortcut for saving is Ctrl+S; the Mac equivalent is Command+S. Word for the web has fewer drawing and formatting controls than the desktop apps, so use the desktop version if you cannot find the required shape options.
Common Mistakes
- Expecting hyphens to remain as typed characters. When AutoFormat is enabled, pressing Enter after three hyphens usually turns them into a border. That is a paragraph formatting change, not a line made of hyphen characters. If you need literal hyphens, undo the conversion with Ctrl+Z on Windows or Command+Z on Mac, or disable the relevant AutoFormat option.
- Dragging without holding Shift. A line that looks almost horizontal may actually slope. Hold Shift while drawing, or select the line and adjust its endpoints until it is level.
- Drawing across the wrong area. A line can appear too short because it stops at the page margins, or it may cross text if it is placed over the wrong paragraph. Check the page layout and click the intended insertion point before drawing.
- Trying to edit a paragraph border like a shape. The automatic hyphen divider cannot be selected by clicking its middle or resized by dragging endpoints. It belongs to a paragraph. Change or remove it using the paragraph border controls instead.
- Pressing Enter repeatedly to make a longer line. Extra blank paragraphs change spacing; they do not extend a shape or make a single continuous divider. Draw a line or use the automatic border once.
- Using underscores when a clean border is wanted. A row of underscore characters is text. Its length depends on the font and may wrap or look uneven. Use the three-hyphen method or a shape for a clean divider.
Tips
- Use the paragraph-border method for a divider that should track the text width. It naturally follows the available width inside the margins and remains attached to its paragraph as text is edited. It is especially useful between sections or under a heading.
- Use a shape for a designed document. A drawn line can be shorter than the text column, placed beside a heading, or styled with a different color and thickness. Keep the design consistent by reusing the same line weight and color for similar dividers.
- Use the page margins as a guide. A shape drawn from near the left margin to near the right margin will look like a long line without running into the page edge. If the usable area seems unexpectedly narrow, check Layout > Margins on Windows; Word for Mac also provides margin controls on the Layout tab, though the exact menu arrangement may differ.
- Keep important lines away from the paper edge. Printers often cannot print to the physical edge of a sheet. A line that reaches the page boundary on screen may be clipped on paper. Leave a margin unless the job specifically uses borderless printing.
- Use Undo immediately if AutoFormat makes the wrong change. Undo restores the hyphens so you can keep them, change the location, or try again. If the conversion is unwanted every time, turn off border-line AutoFormat rather than correcting each occurrence.
- Check how the line behaves after editing nearby text. A shape may move with its anchor or interact with text wrapping. If it shifts unexpectedly, select it and inspect the layout options beside the shape; adjust its positioning or wrapping so it stays where you need it. A paragraph border is often the simpler choice for a line that should move with the text.
Troubleshooting
The three hyphens stay as hyphens. The AutoFormat feature that converts typed characters into border lines may be off. On Windows, open File > Options > Proofing > AutoCorrect Options > AutoFormat As You Type, then enable Border lines if that option is available. Return to the document, type three hyphens on a blank paragraph, and press Enter. In Word for Mac, open Word > Preferences or Word > Settings, depending on the release, then look under AutoCorrect and AutoFormat As You Type for the border-line setting. If you prefer not to change settings, use Insert > Shapes instead.
The automatic line is missing, too short, or in the wrong place. It is a border on a paragraph, so it follows the paragraph’s width and formatting. Click in the paragraph immediately above the line and choose Home > Borders (the arrow beside the Borders button) to inspect its border settings. Check whether the paragraph is indented or inside a narrow table cell; either can limit the line’s width. If necessary, remove the border, move the cursor to a full-width paragraph, and create it again.
The drawn line is slanted or difficult to select. Select it by clicking close to the line, then drag an endpoint while holding Shift to straighten it. If clicking selects text instead, zoom in or click near the line’s endpoint. You can also use the Selection Pane, available from Home > Select > Selection Pane in many desktop versions, to choose a shape that is hard to click. Ribbon availability may vary by release.
The line disappears, overlaps text, or moves after editing. A shape may be positioned relative to nearby text. Select it and use the layout options that appear beside it to choose a suitable text-wrapping or positioning arrangement. If you only need a divider between paragraphs, delete the shape and use a paragraph border instead. If the line is visible on screen but absent in print, check Print Preview, printer margins, and whether the line color is too light.
The line will not reach the page edge. Word’s page margins and the printer’s printable area limit where a line can appear. Review Layout > Margins and select a narrower margin only if it suits the document. Even with narrow margins, a printer may clip content near the paper edge. For a page-wide design, check the PDF and the printer’s borderless-printing support before relying on an edge-to-edge line.
Frequently Asked Questions
How do I make a line go across the whole page in Word?
For a line across the text area, type --- on a blank paragraph and press Enter, or draw a line from near one text margin to the other using Insert > Shapes > Line. Word and most printers reserve page margins, so a line across the full physical sheet may not print without borderless printing.
Why does Word turn three hyphens into a line?
Word’s AutoFormat As You Type feature recognizes three hyphens followed by Enter as a request for a paragraph border. It converts the characters into a formatting border. Press Ctrl+Z on Windows or Command+Z on Mac immediately afterward to undo the conversion.
How do I make the line thicker or change its color?
For a drawn shape, select it and choose Shape Format > Shape Outline, then set the color or weight. For a paragraph border, click in the paragraph and open Home > Borders > Borders and Shading to adjust available border styles, color, and width.
How do I delete the line made with three hyphens?
Click in the paragraph directly above the border, then choose Home > Borders > No Border. Because it is paragraph formatting, clicking the line itself may not select it. If it is a drawn shape, click the line and press Delete or Backspace.
Can I make a line shorter than the text width?
Yes. Draw a shape and stop dragging at the desired endpoint; holding Shift keeps it horizontal. The automatic paragraph border generally spans the paragraph’s available width, so a shape is the better option when you need a deliberately short divider.
Can I insert a horizontal line in Word for the web?
Word for the web may support basic shapes and editing, but its options can differ from the desktop app. If you cannot find Shapes or need precise positioning and styling, open the document in Word for Microsoft 365 on Windows or Mac and insert the line there.
Related
- Google Sheets INDEX Formula: Syntax, Examples, and Tips
- Excel Zoom Bar: How to Change Worksheet Magnification
- XL Number in Excel: Column 636 or Roman 40 Explained
Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.
More in How-to basics
- Excel Take Data From a Table: Methods and ExamplesYes. Excel can take data from a table by referencing its columns in a formula, filtering or looking…
- Import Images in Excel for a Project Tracker: Step-by-StepTo import project images into Excel, create a tracker with one row per item, select the cell where…
- Vehicle Inventory Spreadsheet Template: Fields and SetupA vehicle inventory spreadsheet template is a structured list of the vehicles you have in stock, with one…
- Excel Dependent Dropdowns: How to Create Linked ListsYes. In Excel for Microsoft 365, you can make one dropdown depend on another by using Data Validation…
- How to Archive Emails in Outlook on the Web EasilyTo archive an email in Outlook on the web, select it in your message list and choose Archive…
- Excel File Opening Blank? Causes, Checks, and FixesIf an Excel file opens to a blank screen, first check whether the workbook or its sheets are…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.