To insert a continuous horizontal line in Word, place the cursor in a blank paragraph and type three hyphens (—), then press Enter. Word converts them into a solid paragraph border. For a line you can move and resize independently, use Insert > Shapes > Line instead. The border method is quickest for section dividers; a shape is better when exact placement matters.
The steps below are for Microsoft Word for Microsoft 365 on Windows. The Mac ribbon is similar, though some buttons may be arranged differently. A continuous line means one unbroken stroke; it does not mean a line that automatically follows text or stays in a particular place on the page.
What You’ll Need
- A Word document you can edit, with the cursor positioned where the line should appear.
- For the quick method, a keyboard and a paragraph in which you can type three hyphens. For a movable line, access to the Insert and Shapes commands.
- If the line must be an exact length or sit in a specific position, decide whether it should align with the text margins or be a freely positioned shape.
Step-by-Step
-
Choose which kind of line you need. Use a paragraph border for a divider that runs across the available paragraph width and moves with the surrounding text. It is usually the best choice between headings or sections. Use a drawn shape for a line that needs a particular length, position, or angle. These are different Word objects, so the way you edit and remove them differs.
-
Place the insertion point for a paragraph-border line. Click in an empty paragraph where the line should sit. If there is no blank paragraph, click at the end of the text above the intended divider and press Enter once to create a new paragraph. The border belongs to a paragraph, not to a single typed character, so the cursor’s paragraph matters. Avoid selecting a whole block of text unless you intend to change its borders too.
-
Type three hyphens and convert them. Type three ordinary hyphen-minus characters in a row (—), with no spaces before or between them, then press Enter. In desktop Word, AutoFormat as You Type normally turns the characters into a thin, solid horizontal border beneath the paragraph. It spans the paragraph’s text width, usually from the left text margin to the right text margin. The hyphens are replaced by the border; they are not a row of characters you can edit individually.
-
Check where the border landed. Click in the paragraph immediately above the line. The border is attached to that paragraph, so it may look as if it is below the preceding text rather than inside the blank paragraph you expected. If the line is one paragraph too high or low, undo immediately with Ctrl+Z on Windows or Command+Z on Mac, click in the correct paragraph, and try again. You can also cut and paste nearby text to create a paragraph in the right place, but take care not to delete content.
-
Adjust the border if needed. Click in the paragraph that owns the line. On Windows, open Home > Paragraph > Borders ▼ and choose Borders and Shading. In the dialog, use the Borders tab to choose a solid line style, color, and width, and check the preview to confirm the border is on the bottom edge. Set Apply to to Paragraph, then select OK. The precise labels or dialog layout can vary with the Word update. On Mac, use Home > Borders to open the border options; if the detailed Borders and Shading dialog is available, use its Borders tab and apply the setting to the paragraph.
-
Use the Shapes tool for a separately editable line. Click where you want the line to begin, then choose Insert > Shapes > Lines > Line. Drag across the page to draw it. Hold Shift while dragging to keep the line exactly horizontal. Release the mouse button before releasing Shift. A shape is useful for a short rule, a line in a form, or a divider that should not stretch automatically with the paragraph.
-
Format and position the shape. Select the line, then open Shape Format. Use Shape Outline to choose its color, Weight to set thickness, and Dashes to check that the stroke is solid rather than dashed. Drag an endpoint to change its length or angle. If moving the shape changes how text flows around it, open Layout Options beside the selected object and choose an appropriate wrapping option. In line with text makes the shape behave more like a text character; other wrapping choices allow freer positioning and can cause it to overlap text.
-
Save and check the result. Click outside the line and inspect it at the document’s normal zoom. Confirm that it is continuous, level, and in the intended paragraph or position. If the line should appear in a printed document, use File > Print to check the print preview as well. A very thin or pale line can be difficult to see on paper, so consider increasing its weight or choosing a darker color before printing.
Common Mistakes
Typing hyphens but not pressing Enter: Until you press Enter, the characters remain ordinary text. If they stay as three hyphens after pressing Enter, AutoFormat may be turned off. Use the Borders menu method below rather than repeatedly typing characters.
Expecting the border to be a movable object: The quick hyphen method creates a paragraph border, not a line shape. Clicking the line may not select it like a picture. Click in the paragraph above it to format or remove the border. Choose Shapes when independent movement is important.
Making a page-wide line with a shape that is slightly crooked: A freehand drag can leave a small angle that is hard to notice until printing. Hold Shift as you draw, or adjust the endpoints while keeping the line selected. For a divider that should always match the text width, use a paragraph border instead.
Changing every paragraph border by accident: Applying a border while several paragraphs are selected can affect more than the one intended. Click in one paragraph and check the preview and Apply to setting in Borders and Shading. If unexpected lines appear, undo the change promptly or select the affected paragraphs and choose No Border.
Confusing a border with an underline: Underlining hyphens or text creates a line only under the characters. A paragraph border runs across the paragraph area and does not depend on how many characters are typed. If the line stops at the end of the text, remove the underline and apply a bottom border instead.
Tips
-
Use the three-hyphen shortcut for a simple section divider, especially when the document may be edited later. Because it follows paragraph layout, it typically stays aligned with the text as margins or paragraph widths change.
-
For a border with a different thickness or color, set it with Borders and Shading rather than trying other keyboard characters. In the Borders tab, use the preview to apply only the bottom edge; selecting all four sides can create a box around the paragraph instead.
-
To make the border shorter or shift it inward, adjust the paragraph’s left or right indent. Keep in mind that this changes the paragraph layout too. If you want the text to remain where it is while only the line changes length, draw a line shape instead.
-
Use a shape for signature lines, form fields, diagrams, or dividers that must sit at a precise location. If the line should stay attached to nearby text, set an appropriate wrapping option and check its anchor behavior. A floating shape can move when text is added or removed earlier in the document.
-
For repeated, consistently formatted dividers, apply the same border settings to each paragraph or use a document style that includes the desired paragraph border. This is more reliable than drawing a series of shapes by eye.
-
Word for Mac has the same basic choices: a paragraph border or a line shape. Look under Home for Borders and under Insert for Shapes. Ribbon layout and shortcut behavior can differ slightly by Mac version, so use the visible command labels if a control is not in the same position as Windows.
Troubleshooting
The three hyphens do not turn into a line. First press Enter after the hyphens. If they remain as text, open File > Options > Proofing > AutoCorrect Options > AutoFormat As You Type on Windows and check that Border lines is enabled. The wording and availability can vary by installation. On Mac, look in Word > Preferences or Word > Settings > AutoCorrect for the AutoFormat As You Type options. If you cannot find the setting, use Home > Paragraph > Borders ▼ and choose Bottom Border while the cursor is in the target paragraph.
The line appears in the wrong place. Remember that a paragraph border sits below its paragraph. Click in the paragraph directly above the line to identify what owns it. If it is attached to the wrong paragraph, undo and insert the border again with the cursor in the right place. For a shape, select it and drag it to the desired position; use the arrow keys for small adjustments when the shape is selected.
The border is too short, too long, or indented. A paragraph border follows the paragraph’s available width, including its indents. Check the ruler or paragraph settings and adjust the left and right indents if the whole paragraph can move. If only the line should change length, delete the border and draw a shape with the required endpoints.
The line is dashed, faint, or too thick. For a border, return to Borders and Shading and choose a solid style, a suitable color, and a narrower or wider setting. For a shape, select it and use Shape Format > Shape Outline > Dashes, Weight, or Color. If the line looks different in print preview, increase its weight and use a darker color.
You cannot select or delete the line. If it came from the hyphen shortcut, click in the paragraph above it and choose Home > Paragraph > Borders ▼ > No Border. This removes paragraph borders, so first confirm that the paragraph does not have other borders you need. If it is a shape, click its stroke until selection handles appear, then press Delete. If clicking selects text instead, try clicking directly on the line or use the Selection Pane from the Home tab’s Select menu to locate the shape.
The line changes position when text is edited. This is expected for a paragraph border because it belongs to the text paragraph. A floating shape may also shift as its anchor paragraph moves. If the rule is meant to separate text sections, a paragraph border is usually the more stable choice. If it must remain at a fixed spot on a page, adjust the shape’s layout and positioning settings, and recheck it after editing or printing.
Frequently Asked Questions
How do I insert a solid line across the page in Word?
Click in the appropriate paragraph, type three hyphens, and press Enter. Word makes a bottom paragraph border that usually runs across the text area between the margins. If AutoFormat is unavailable, choose Home > Paragraph > Borders ▼ > Bottom Border.
Is the line made with three hyphens an object?
No. It is a paragraph border, so it is formatted through the paragraph’s border settings and moves with that paragraph. Use Insert > Shapes > Line if you need a separate object you can drag, resize, or format independently.
How can I make the line thicker or change its color?
For a paragraph border, open Borders and Shading and set the line style, color, and width on the Borders tab. For a drawn line, select it and use Shape Format > Shape Outline to set its color and weight.
How do I remove a continuous line?
For a paragraph border, click in the paragraph directly above the line and choose Home > Paragraph > Borders ▼ > No Border. For a shape, select its stroke and press Delete.
Can I make the line shorter than the text width?
Yes. Draw a line with Insert > Shapes > Line and drag its endpoints to the length you want. A paragraph border follows the paragraph width, so shortening it usually requires changing paragraph indents, which can also affect the text.
Does this work in Word for Mac?
Yes. The hyphen AutoFormat and Shapes approaches are available in desktop Word for Mac, although the ribbon arrangement and settings labels may differ. Look under Home for border controls and under Insert for Shapes.
Related
- Insert Key in Excel: What It Does and How to Use It Safely
- How to Link a Word to a Website in Microsoft Excel
- How to Find Duplicate Values in Excel: Step-by-Step
Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.
More in How-to basics
- Google Sheets Filters: How to Add and Use ThemTo add a filter in Google Sheets in a web browser, select your data range, including its header…
- How to Choose Double Spacing in WordTo choose double spacing in Word, place the cursor in a paragraph or select the text you want…
- Share a Calendar in New Outlook: Step-by-StepTo share a calendar in New Outlook, open Calendar, select the calendar you own, choose Share Calendar, enter…
- How to Schedule an Email in Outlook on the WebTo schedule an email in Outlook on the web, write your message, select the arrow beside Send, choose…
- How to Freeze Just One Row in ExcelTo keep the first row visible while you scroll in Excel, open View > Freeze Panes > Freeze…
- Auto Loan Amortization Schedule in Google SheetsYes—Google Sheets can create an auto loan amortization schedule that shows each monthly payment’s interest, principal, and remaining…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.