To add a visual divider between sections in Microsoft Word, choose Insert > Shapes > Line, then drag across the page where you want the line. Select the line to change its color, thickness, or position. This guide covers Microsoft 365 for Windows; the main steps are similar on Mac. A visual line is different from a section break, which changes page layout or formatting.
What You’ll Need
- A Word document open in the desktop app. The instructions are for Microsoft 365 on Windows; Word for Mac has similar drawing tools, though some ribbon labels and menus may differ.
- A mouse, trackpad, or other pointing device to draw and position the line. You can also use the keyboard to adjust a selected line in small increments.
- An idea of where the divider should go. If it must stay in a particular relationship to nearby text, decide whether it should move with the paragraph or sit in a fixed place on the page.
Step-by-Step
- Place the insertion point. Click in the paragraph near where you want the divider. For a line between two sections, it is usually easiest to put the cursor at the start of a blank paragraph between them. If no blank paragraph exists, click at the end of the first section, press Enter once, and click in the new paragraph. The line is a graphic object, so it may not behave exactly like a typed character.
- Open the Shapes gallery. In the Windows ribbon, choose Insert > Shapes. In the Lines group, select the basic Line option, shown as a straight diagonal line. Avoid choosing an arrow unless you want an arrowhead. In Word for Mac, use Insert > Shapes and select Line; depending on the ribbon layout, you may need to open the Shapes menu first.
- Draw the line. Move the pointer to the left edge of the text area, press and hold the mouse button, and drag toward the right edge. Release when the line is the length you want. To keep it perfectly horizontal while drawing, hold Shift as you drag. The text area is bounded by the page margins, so draw inside those margins unless you deliberately want the line to extend farther.
- Select the line and refine its length. Click the line so its endpoint handles appear. Drag either handle to shorten or lengthen it. For a divider aligned with the paragraph text, position the endpoints near the left and right text margins rather than at the physical edges of the paper. If you miss the line and select text instead, click the line itself or use the Selection Pane to select the drawing object.
- Set its color and weight. With the line selected, open the Shape Format tab, which appears contextually. Choose Shape Outline to set a color, then use Shape Outline > Weight to choose a line thickness. You can also choose Shape Outline > Dashes for a dotted or dashed divider. A thin neutral line is often easiest to read; use a stronger color or weight only when the divider needs to stand out.
- Choose how it sits with text. Select the line and open Layout Options, if that button appears beside the object, or use the Layout tab to find text-wrapping options. For a divider that should remain associated with the paragraph, choose In Line with Text when available. For more precise free placement, choose a wrapping option such as In Front of Text or Top and Bottom, then check that nearby words are not overlapped. The available options can vary by Word build and object type.
- Position it neatly. Drag the line into the blank paragraph between the sections. Use the arrow keys for small adjustments after selecting it; holding Ctrl while pressing an arrow key can move a drawing object in finer increments in Word for Windows. If the line jumps unexpectedly, check its wrapping and anchor behavior rather than repeatedly dragging it. The anchor indicates which paragraph the floating object is attached to.
- Check the result in the document. Click in the text to deselect the line, then inspect the divider at normal page size. Confirm it is horizontal, aligned with the text, and separated from the paragraphs enough to look intentional. Scroll to the next page if the line is near a page break, and consider Print Preview to confirm it appears as expected on paper or in a PDF.
Alternative: use a paragraph border. If you want a simple rule that follows the text width and moves naturally with the document, place the cursor in the paragraph where the rule should appear. On Windows, go to Home > Paragraph, open the Borders menu using its arrow, and choose Horizontal Line if that command is available. The rule is tied to paragraph formatting rather than being a freely positioned shape. To customize it, right-click the rule and choose Format Horizontal Line, if offered. Because menu availability can vary by Word version, the Shapes method is the more consistent option for a line you need to style and position precisely.
Common Mistakes
Confusing a line with a section break. In Word, a section break separates document sections so they can have different layouts, headers, footers, or page numbering. A horizontal line is only a visual divider. If the goal is to change page orientation or use different columns, use Layout > Breaks and choose the appropriate section break instead of drawing a line.
Drawing while the wrong object is selected. If you drag and move a picture, text, or another shape by mistake, press Ctrl+Z on Windows (Command+Z on Mac) to undo and then click an empty area before drawing again. Confirm that the Line tool is selected in the Shapes gallery before dragging.
Making the divider too long or too heavy. A line that reaches the page edges can look unrelated to the text, while an overly thick line can dominate the page. Keep it within the text margins and choose a weight that matches the document’s other rules and headings.
Ignoring text wrapping and anchoring. A floating line may shift when you edit nearby paragraphs or insert a page break. It can also cover text if its wrapping is set poorly. Use an appropriate wrapping option, place it in its own paragraph when possible, and check the anchor if it moves unexpectedly.
Using repeated hyphens as a permanent divider. Typing several hyphens and pressing Enter may trigger Word’s automatic border formatting, depending on AutoFormat settings. That creates a paragraph border, not an ordinary line shape, and deleting or changing it may require editing the paragraph’s borders. Use the Shapes command when you need predictable control.
Tips
- Use Shift for a straight line. Holding Shift while drawing constrains the line to a horizontal, vertical, or diagonal direction. For a section divider, start and finish at roughly the same height and keep Shift pressed while dragging.
- Match the document’s style. Choose a color already used in headings or other graphic elements. A subtle gray line usually separates content without competing with it. If the document will be printed in black and white, check that the divider remains visible without relying on color alone.
- Keep spacing consistent. Leave a similar amount of white space above and below each divider. If the line seems too close to a paragraph, add paragraph spacing or a blank paragraph rather than stretching the line vertically; a line object itself has no useful vertical spacing.
- Reuse a finished line. Once you have a line with the right style, copy and paste it for another divider. Check its position and wrapping after pasting, since the pasted object may inherit the anchor or location of the original.
- Use the Selection Pane for crowded pages. When objects overlap or are difficult to click, open Home > Select > Selection Pane in Word for Windows. Select the line from the pane, then format, move, hide, or delete it. The Selection Pane is also useful for finding a shape that seems to have disappeared behind text.
- Make the line accessible in context. A decorative divider usually does not need alternative text, but it should not be the only indication of a meaningful change in topic. Use clear headings as well, so readers using assistive technology can navigate the document structure.
Troubleshooting
The line is slanted. Select it, delete it if necessary, and draw it again while holding Shift. You can also select an existing line and adjust its endpoints until they sit at the same height. Zooming in can make fine positioning easier.
I cannot select or find the line. It may be behind text or another object, or it may be anchored to a different paragraph. Open the Selection Pane and select the shape by name. If it is hidden behind content, change its wrapping or arrange order, then move it into view. If you used a paragraph border instead of a shape, click in the paragraph above the rule and inspect the Borders menu.
The line moves when I edit the document. This is usually an anchoring or wrapping issue. Select the line, review Layout Options, and choose a wrapping method that suits the layout. If you want the line to travel with a particular paragraph, place it near that paragraph and use In Line with Text when available. For a floating line, check that its anchor is attached to the intended paragraph.
The line prints or exports in the wrong place. Check its position in Print Preview and confirm that the line stays within the page margins. If it looks right on screen but not in the exported PDF, save or export again after adjusting the line, then reopen the PDF to verify it. Lines placed very near a page edge may be clipped by printer margins.
I cannot see Shape Format. The tab is contextual and appears only after you select a shape. Click the line, not the surrounding paragraph. If the line is too small to click, use Home > Select > Selection Pane and select it there. On Mac, the contextual tab may be labeled Shape Format or appear as a formatting panel depending on the Word version.
Frequently Asked Questions
Is a section line the same as a section break?
No. A section line is a visible divider made with a shape or paragraph border. A section break is a formatting marker that lets parts of a document use different page settings, headers, footers, or columns. Use Layout > Breaks when you need a section break.
How do I add a line across the full text width?
Choose Insert > Shapes > Line and drag from the left text margin to the right text margin while holding Shift. If you want a rule that automatically follows the paragraph width, use the Horizontal Line command in the Home tab’s Borders menu when available.
Can I change the line after inserting it?
Yes. Select the line, open Shape Format, and change Shape Outline color, Weight, or Dashes. Drag its endpoint handles to adjust its length. If the line is a paragraph border instead, select the relevant paragraph and change its Borders settings.
Why does my line disappear when I click elsewhere?
It may be too thin or colored similarly to the page, or it may have moved behind another object. Select it through the Selection Pane, check its outline color and weight, and review its wrapping and arrange order.
Can I insert a section line in Word for Mac?
Yes. Use Insert > Shapes > Line, draw the divider, then use the shape-formatting controls to adjust its appearance. The precise ribbon labels can differ from Windows, but the line shape and its formatting options are available in desktop Word for Mac.
Related
- Google Sheets Limitations vs Excel: Key Differences
- Google Sheets Jorge4244: What the Name May Refer To
- Google Sheets Journal Template: Build a Useful Daily Log
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 Search in Excel: Keyboard Shortcut and TipsTo search an Excel worksheet, press Ctrl+F in Excel for Microsoft 365 on Windows, type the text or…
- Excel Freeze Pane Line: How to Remove ItTo get rid of a freeze pane line in Excel, select the affected worksheet, then choose View >…
- Excel Time Value: How Excel Stores and Calculates TimeIn Excel, a time value is a number representing a fraction of a 24-hour day: for example, 6:00…
- Does Excel Have a Profit and Loss Template? How to Use ItYes. Microsoft Excel for Microsoft 365 includes a template gallery where you can search for profit and loss…
- Compare Two Columns in Excel Without Matching RowsTo compare two columns as unordered lists—not by checking cells on the same row—test whether each value in…
- Excel Time Shortcut: How to Insert the Current TimeIn Excel for Microsoft 365 on Windows, select a cell and press Ctrl+Shift+; (semicolon) to enter the current…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.