To insert a line in Word 365, type three hyphens and press Enter for a quick horizontal rule, use Home > Borders > Bottom Border for a paragraph divider, or choose Insert > Shapes > Line to draw a moveable line. The best method depends on whether you want a divider that spans text, a border attached to a paragraph, or a shape you can position and format.
What You’ll Need
- Word 365 for Windows or Mac and a document where you can edit content.
- A rough idea of the line you need: a full-width divider, a short decorative mark, or a line placed at a specific angle or position.
- If you plan to draw a shape, enough room in the document to drag out the line. You can adjust its position and size afterward.
Step-by-Step
- Choose where the line should go. Click in the document at the point where you want the divider. For a line between sections, place the insertion point in a blank paragraph between them. For a line associated with a heading or paragraph, click inside that paragraph instead. Save or undo changes as needed; adding a line does not require selecting the surrounding text.
- Make a quick horizontal rule with AutoFormat. In a blank paragraph, type three hyphens in a row (
---), then press Enter. Word usually turns the characters into a thin horizontal line spanning the text area. The line is a paragraph border, not a row of hyphen characters, so it can extend across the page even when the three typed marks were short. This is useful for a quick section break in a report or letter. - If the hyphen shortcut does not work, check AutoFormat. On Windows, go to File > Options > Proofing > AutoCorrect Options, then open AutoFormat As You Type and make sure Border lines is selected. On Mac, open Word > Settings or Preferences > AutoCorrect, then check the AutoFormat As You Type options for Border lines. Menu labels can vary slightly with the Word release. Return to the document, type the hyphens in a paragraph by themselves, and press Enter. If your organization has disabled AutoFormat, use one of the other methods below.
- Add a paragraph border from the ribbon. Click in the paragraph that should have the line along its bottom. On the Home tab, find the Paragraph group and open the Borders drop-down (the small arrow beside the borders icon). Select Bottom Border. Word draws a line across the paragraph width, which is useful when you want a divider that stays connected to text or a heading as the document changes. If you want a line above the paragraph instead, use the same menu and choose Top Border.
- Draw a line shape when placement matters. Click where you want the shape, then select Insert > Shapes > Lines > Line on Windows. On Mac, use Insert > Shapes and choose the straight line shape; the exact menu presentation can differ by ribbon layout. Position the pointer at the line’s starting point, hold the mouse button, and drag to its endpoint. Hold Shift while dragging to constrain the line to a horizontal, vertical, or 45-degree direction. Release the mouse button to finish drawing.
- Format or reposition the shape. Click the drawn line to select it. Use the Shape Format tab and its Shape Outline controls to change the line color, weight, or dash style. Drag an endpoint to change its length or angle, or drag the middle of the line to move it. If text moves around it, use the Layout Options button beside the selected shape to change how it interacts with nearby text. The choices available depend on the document and Word version.
- Check the result in context. Scroll through the page and confirm the line separates the intended sections without touching nearby text. A paragraph border may stretch across the available text width; a drawn shape stays at the size and location you set. If you do not like the result, use Ctrl+Z on Windows or Command+Z on Mac immediately, then try another method or adjust the formatting.
Common Mistakes
Typing hyphens but not pressing Enter: Until you press Enter, the document contains ordinary characters, not an automatic rule. Press Enter after the three hyphens. If they remain as characters, check the Border lines AutoFormat setting or use a border or shape instead.
Applying a border to the wrong paragraph: Bottom Border belongs to the paragraph where the cursor is located. A line can appear above or below a different block than expected if the insertion point was in the wrong paragraph. Click in the exact paragraph and inspect the result; borders apply to paragraphs, not just the words selected.
Expecting a shape to behave like a text divider: A drawn line is an object, and its wrapping and position can change as nearby text is edited. If you need a consistent divider that follows a section of text, use a paragraph border. Choose a shape when precise positioning or a non-horizontal line is important.
Using underscores for a long line: Repeated underscore characters make text that can wrap, vary with the font, and interfere with typing. They are not as dependable as a border or line shape. Avoid adding many underscores to imitate a page-wide divider.
Tips
Use a paragraph border for a clean rule that should remain aligned with the text column. It is usually the easiest choice for repeated dividers in a document because it stays attached to its paragraph when content is added or removed. For a short line under a label, or a line at an angle, use a shape and resize it with its handles.
Keep line styles consistent. If a report uses thin gray dividers, use the same color and weight throughout rather than mixing heavy rules and bright colors. A very thick line can look like a shape or obscure nearby content; use a restrained weight for ordinary section breaks.
For a border created from hyphens, place the cursor in the paragraph immediately above the line, open Home > Borders, and choose No Border to remove it. For a shape, click its edge so its handles appear, then press Delete. If you accidentally remove text or another object, use Ctrl+Z on Windows or Command+Z on Mac.
Remember that Word’s document page has margins. A paragraph border normally follows the paragraph’s available width inside those margins; it does not automatically run from the physical left edge of the paper to the right edge. If the line looks too long or short, check the paragraph indentation and page margins before changing the line itself.
Troubleshooting
The three hyphens stay on the page. Press Enter after them, and confirm the marks are in a paragraph by themselves. If they still do not convert, turn on Border lines in AutoFormat As You Type as described above. Some managed work or school installations disable AutoFormat, and Word for the web may not show the same settings as the desktop app. In that case, add a Bottom Border or draw a line shape.
The line appears in the wrong place or seems to run through text. First identify its type. If it is a paragraph border, click in the paragraph directly above it and remove the border, then apply Bottom Border to the intended paragraph. If it is a shape, select it and drag it away from the text. Check Layout Options if wrapping is causing text to flow beside or over the shape.
The line will not stay horizontal. Select the shape and drag one endpoint to correct its angle. When drawing a replacement, hold Shift while dragging to constrain its direction. A paragraph border is inherently horizontal, so it is a better option if you need a straight divider that cannot tilt.
You cannot select or delete the line. A border is part of paragraph formatting, so clicking directly on the visible line may not select it. Click in the paragraph above the rule, then use Home > Borders > No Border. If it is a shape, click its edge rather than the space around it; when the selection handles appear, press Delete. If clicking selects text instead, zoom in or click near an endpoint.
The line is missing in print or looks different on another computer. Check Print Layout and use Print Preview to see how it will appear on the page. A shape may be affected by text wrapping or anchoring, while a border follows paragraph formatting. If sharing the file, keep it as a Word document when others need to edit the line; exporting to PDF is useful when you want to preserve the finished page layout.
Frequently Asked Questions
How do I insert a straight horizontal line in Word 365?
For a quick rule, type three hyphens in a blank paragraph and press Enter. If AutoFormat is unavailable, place the cursor in the target paragraph and choose Home > Borders > Bottom Border. Both methods create a horizontal divider, but the border method gives you a direct ribbon command.
How do I draw a line that is not full width?
Use Insert > Shapes and choose the straight line shape. Drag from the desired start point to the endpoint; hold Shift to constrain its direction. Select the line afterward to resize it or change its outline. A paragraph border is less suitable because it follows the paragraph width.
How do I remove a horizontal line that Word added automatically?
Click in the paragraph directly above the rule, then select Home > Borders > No Border. The automatic rule is a paragraph border, so clicking the line itself may not select it. If you just created it, Ctrl+Z on Windows or Command+Z on Mac is a quick way to undo it.
Can I change the color or thickness of a line?
For a drawn shape, select it and use Shape Format > Shape Outline to choose a color and weight. For a paragraph border, open the Borders menu and choose Borders and Shading if that option is available, then adjust the border settings. Options and dialog labels may vary slightly between Word for Windows and Word for Mac.
Will the line move when I edit the document?
A paragraph border stays with its paragraph, so it generally moves with that text as you add or remove content. A shape is anchored to text but can have different wrapping and positioning, so nearby edits may affect where it appears. Use a border for a text-following divider and a shape when you need more control over placement.
Related
- How to Compare Documents in Microsoft Word
- How to Compare Documents in Microsoft Word
- How to Clear Search Cache in Outlook
Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.
More in How-to basics
- How to Remove Emails from the Archive Folder in OutlookTo remove an email from Outlook’s regular Archive folder, open Archive, select the message, and use Move to…
- How to Create a Professional Email Signature in OutlookTo create a proper signature in Outlook, open the signature settings for your version of Outlook, write a…
- How to Create a Signature Block in Microsoft OutlookTo create a signature block in Outlook, open the signature settings for your version, select New signature, enter…
- Google Sheets Google Translate Language Codes ExplainedIn Google Sheets, the GOOGLETRANSLATE function uses language codes such as en for English and es for Spanish;…
- Google Sheets Monthly Timesheet TemplateYes—you can make a monthly timesheet template in Google Sheets by setting up columns for date, employee, start…
- How to Add an MLA Header in Word: A Step-by-Step GuideTo add an MLA header in Microsoft Word, right-align the header, type your last name and a space,…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.