To insert a coloured line in Word, choose Insert > Shapes > Line, draw the line, then select Shape Format > Shape Outline and pick a colour. This makes an editable line you can resize, reposition, and style. You will need Word for Microsoft 365 and a document where you can edit content; the steps below are for Windows, with Mac notes where the controls differ.
What You’ll Need
- Microsoft Word for Microsoft 365 on Windows, or the Word app on Mac. The names and arrangement of some ribbon controls can differ slightly between platforms and updates.
- A document you can edit. If it is protected or opened read-only, you may need permission or an editable copy before adding shapes.
- A colour choice, if you have a specific design in mind. For a professional result, choose a colour that contrasts with the page and remains readable when printed.
Step-by-Step
-
Open the document and choose where the line should go. Click in the document near the intended location. If the line will divide two sections, place the insertion point in the paragraph above or below the gap where it should appear. You do not have to select text to insert a shape, but choosing the location first makes it easier to position the line sensibly.
-
Open the line shapes. On Windows, select Insert > Shapes. In the Lines group, choose the straight Line option, usually shown as a diagonal stroke. On Mac, use Insert > Shapes and select the straight line from the line options. Be sure to choose a line, not a connector with arrows or a freeform scribble.
-
Draw the line. Move the pointer to the point where one end should start, press and hold the mouse button, and drag to the other end. For a level horizontal line, hold Shift while dragging. Release the mouse button when the line reaches the desired length. The line may appear in a default colour; you will change that next.
-
Select the line and open its formatting controls. Click the line itself. Small handles should appear at its ends or along it, and Word should show the contextual Shape Format tab (sometimes labelled Shape or Drawing Format in a different build). If the tab does not appear, make sure the line is selected rather than the surrounding paragraph or page.
-
Choose a colour. On Windows, select Shape Format > Shape Outline, then choose a colour from Theme Colors or Standard Colors. Theme colours generally coordinate with the document theme; standard colours are useful when you want a straightforward red, blue, or green. Select More Outline Colors if available and choose a custom colour in the colour dialog. On Mac, select the line and use the Shape Format ribbon’s outline or line-colour control; choose a colour from the palette or open the custom-colour picker if you need a precise shade.
-
Adjust the line weight if needed. With the line still selected, choose Shape Format > Shape Outline > Weight on Windows and select a thickness. On Mac, use the line or outline formatting controls in the Shape Format tab. A thin line is suitable for a subtle divider; a heavier stroke helps a short accent stand out. If the line disappears on screen or in print, try a darker colour or a slightly heavier weight.
-
Set the length and position. Drag the line itself to move it. Drag an endpoint handle to change its length or angle. Hold Shift while drawing or adjusting to keep it horizontal or vertical. Use the page margins and nearby text as visual guides. For precise placement, select the line and look for size or position controls in the formatting pane; the available options vary by Word version.
-
Check how it sits with the text, then save. Select the line and open Layout Options if Word shows that button. Choose a text-wrapping option appropriate to the layout. For a divider that should stay tied to a text line, choose In Line with Text when available; for a decorative line placed freely on the page, a floating option may be more suitable. Review the result at normal page size, then save with Ctrl+S on Windows or Command+S on Mac.
Common Mistakes
Drawing a hyphen instead of inserting a shape. A row of hyphens or underscores is text, not a single line. Its length and alignment can change when the font, spacing, or page width changes. Use the Line shape when you need a graphic line that can be formatted and positioned independently.
Choosing the wrong shape. A connector or arrow line may add an arrowhead or behave differently when objects move. If you see an arrow, select the plain Line shape and draw it again. For a simple horizontal divider, a paragraph border may be more reliable than a floating shape.
Expecting a colour change to affect the page border. Shape Outline changes only the selected shape. If a line was created as a paragraph border, select the relevant paragraph and change the border settings instead. Also check that you selected the line itself; selecting nearby text will not reveal its shape-formatting controls.
Using a very pale colour or a hairline stroke. A colour that looks clear on a bright monitor may be hard to see on a printed page or when copied. Check the line in Print Layout and, if print matters, use Print Preview. Increase contrast or weight if necessary.
Tips
Use a paragraph border for a divider that should follow text. Click in the paragraph where the divider belongs, then open Home > Borders using the arrow beside the Borders button and choose Borders and Shading. In the dialog, select the Borders tab, choose a line style, colour, and width, then use the preview to apply the border to the bottom or top of the paragraph. Confirm that Apply to is set to Paragraph, then select OK. This method creates a rule associated with the paragraph rather than a freely positioned shape. The dialog layout can differ on Mac.
Match the document palette. A theme colour helps the line fit headings and other accents. If the line is meant to separate sections, use a colour already used in the document rather than introducing several unrelated colours. For accessibility and printing, avoid relying on colour alone to communicate meaning.
Make a deliberate gap around a shape. If text crowds the line, reposition it or adjust its wrapping through Layout Options. If moving the shape disrupts nearby paragraphs, undo the move and consider using a paragraph border instead. Save after you are satisfied with the layout.
Keep a reusable style consistent. When a document has several divider lines, use the same colour and weight for each. You can select a finished line, copy it, and paste it elsewhere, then drag the copy into place. Check each copy’s alignment and wrapping; a pasted shape can land in a different position relative to the text.
Troubleshooting
The colour option is missing. Click directly on the line until its selection handles appear. Shape formatting controls only show when a shape is selected. If the line is part of a header or footer, double-click that area to edit it first. If you are using Word in a browser, ribbon features can vary; try opening the document in the desktop Word app for the full set of shape controls.
The line will not stay horizontal. Delete it and draw a new one while holding Shift. If it is already selected, drag an endpoint with Shift held down. Small pointer movements can make a line appear slightly angled, so zoom in to check its orientation.
The line moves when text changes. That can happen with a floating shape anchored to a paragraph. Select it and use Layout Options to change wrapping or anchoring if those controls are available. If it should remain exactly within the flow of the text, replace it with a paragraph border. A border follows its paragraph as the document changes.
The line is difficult to select or seems to have vanished. Click near its middle, not just beyond an endpoint. If another object overlaps it, use Home > Select > Selection Pane on Windows to find and select the shape by name. Check the line’s outline colour and weight as well: a white or very thin line can blend into the page. Undo with Ctrl+Z on Windows or Command+Z on Mac if a recent change made the layout worse.
Frequently Asked Questions
Can I change the colour of a line after drawing it?
Yes. Select the shape, then use Shape Format > Shape Outline on Windows and choose a new colour. A paragraph border must be changed through the paragraph’s border settings instead.
How do I make a perfectly straight horizontal line?
Choose the plain Line shape and hold Shift while dragging. If the line is already drawn, select it and adjust an endpoint while holding Shift.
Can I insert a coloured line across the full width of the page?
Yes. Draw the shape from near one page margin to the other and adjust its endpoints. For a divider that should automatically match the text width and follow the paragraph, use a bottom paragraph border instead.
Why does my line have an arrowhead?
You likely chose an arrow or connector rather than the plain Line shape. Delete it, select the straight Line option under Insert > Shapes, and draw a replacement.
Will the line print in colour?
Usually, if the selected outline colour is coloured and the printer supports colour printing. Check Print Preview and your printer’s colour settings. If the document will be photocopied or printed in grayscale, use enough weight and contrast for the divider to remain visible.
Should I use a shape or a paragraph border?
Use a shape when you want to place, angle, or style a line independently. Use a paragraph border when you want a simple divider that stays attached to a paragraph and follows the text width.
Related
- How to Keep Track of Tasks at Work in Excel
- How to Keep Track of Vacation Days in Excel
- Keep Only One Duplicate 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
- How to Archive Emails in Outlook on a PC and Find Them LaterTo archive an email in Outlook for Windows, select it and click Archive on the ribbon or toolbar.…
- Make a Flowchart in Word: Shapes, Connectors, and TipsTo make a flowchart in Microsoft Word for Microsoft 365 on Windows, choose Insert > Shapes, select flowchart…
- How to Add or Remove a Draft Watermark in Microsoft WordTo add a Draft watermark in Word for Microsoft 365 on Windows, open the document and choose Design…
- How to Keep Track of Your Budget in Excel: Step by StepTo keep track of a budget in Excel, record each transaction in a dated log, assign it a…
- Where Is Quick Styles in Word? Find and Use the GalleryIn Microsoft Word for Microsoft 365, Quick Styles are in the Styles gallery on the Home tab. On…
- Create a Filter in Google Sheets: Steps and TipsTo create a filter in Google Sheets in a web browser, select the cells you want to filter,…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.