How to Add or Remove Borders in Word Without the Wrong Line
In this article
Adding or removing borders in Microsoft Word can be tricky—one wrong click and you get a line across the page instead of a neat box around your text. This guide shows you exactly how to control borders in Word, so you always get the line you want (or get rid of the one you don't). You'll learn the difference between paragraph borders, table borders, and page borders, and how to avoid the common pitfalls that create unwanted lines.
What You'll Need
- Microsoft Word (2016, 2019, 2021, or Microsoft 365—the steps are the same for recent versions)
- A document with some text or a table to practice on
- Basic familiarity with Word's ribbon interface
Step-by-Step
Adding a Border Around a Paragraph or Text
- Select the text you want to border. This can be a single paragraph, multiple paragraphs, or just a few words. If you want the border to wrap tightly around the text, select the text only; if you want a box around the whole paragraph, make sure the paragraph mark (¶) is included in the selection.
- Go to the Home tab on the ribbon.
- In the Paragraph group, click the Borders button (it looks like a square divided into four quadrants, or a window with lines). A drop-down menu will appear.
- Choose Borders and Shading… at the bottom of the menu. This opens the full dialog box where you have more control.
- In the dialog box, under the Borders tab, select a Setting (Box, Shadow, 3-D, Custom). For a simple border, choose Box.
- Pick a Style (solid, dashed, dotted, etc.), a Color, and a Width.
- In the Apply to drop-down, choose Paragraph or Text. If you selected text, this will be pre-set. If you're applying to a paragraph, make sure it says Paragraph.
- Click OK. Your border appears.
Removing a Border from a Paragraph or Text
- Select the paragraph or text that has the border.
- Go to Home > Borders button.
- Choose No Border from the drop-down menu. This removes all borders from the selection.
- If the border persists, it might be a page border or a table border—see the troubleshooting section below.
Adding a Page Border (Around the Whole Page)
- Go to the Design tab (or Layout tab in some versions).
- Click Page Borders (usually on the right side of the ribbon).
- In the Borders and Shading dialog, the Page Border tab will be active.
- Choose a Setting (Box, Shadow, etc.), style, color, and width.
- Use the Apply to drop-down to choose whether the border applies to the whole document, this section, or just the first page.
- Click OK.
Removing a Page Border
- Go to Design > Page Borders.
- In the dialog, select None under Setting.
- Click OK.
Adding Borders to a Table
- Click anywhere inside the table you want to format.
- The Table Design and Layout tabs appear on the ribbon (under Table Tools).
- On the Table Design tab, find the Borders button (in the Borders group).
- Click the drop-down arrow to see options like All Borders, Outside Borders, Inside Borders, etc. Choose the one you want.
- For more control, click Borders and Shading… at the bottom of the drop-down to open the dialog box.
- In the dialog, you can choose which lines to apply (top, bottom, left, right, inside) by clicking the buttons in the Preview area.
- Click OK.
Removing Table Borders
- Select the table or the cells you want to remove borders from.
- Go to Table Design > Borders.
- Choose No Border from the drop-down. This removes all borders from the selected cells.
- If you only want to remove some lines (e.g., the vertical lines), use Borders and Shading and click the specific lines in the Preview to toggle them off.
Common Mistakes
- Using the wrong border type: The most common mistake is applying a paragraph border when you meant a page border, or vice versa. The result is a line in an unexpected place.
- Not selecting the right text: If you select a paragraph but the border applies to each line individually, you might have selected text instead of paragraph. Make sure you select the paragraph mark (¶) or use the Apply to: Paragraph option.
- Accidentally applying borders to a table: If you click inside a table and then use the Home tab's Borders button, you might add borders to the table cells instead of the paragraph. Always check the context.
- Forgetting to clear the “Apply to” setting: When you open Borders and Shading, the Apply to field might still say “Text” from a previous use. If you then select a paragraph, you'll get a border around each line, not the whole paragraph.
Tips
- Use the Borders button for quick changes: The drop-down menu on the Borders button gives you instant access to common options like Bottom Border, Top Border, Left Border, etc. These are great for adding a single line under a heading.
- Preview before you apply: In the Borders and Shading dialog, the Preview area shows exactly where the borders will appear. Use the buttons around the preview to toggle individual lines on and off.
- Create a custom border: In the Borders and Shading dialog, choose “Custom” under Setting. Then click the buttons in the Preview to add or remove specific lines. This is perfect for a border that only appears on the left and bottom, for example.
- Use the “Apply to” drop-down wisely: You can apply borders to “Text,” “Paragraph,” “Table,” or “Cell.” Understanding the difference saves you from many headaches.
- Keyboard shortcut: To quickly remove all borders from a selection, select the text and press Ctrl+Shift+_ (underline). This toggles the bottom border on and off, but it's a quick way to clear a single line.
Troubleshooting
I removed the border but a line still shows.
This is usually because the line is not a border but a bottom border on the paragraph above, or a page border. Check the following:
- Select the paragraph above the line and go to Home > Borders > No Border.
- Go to Design > Page Borders and make sure the Setting is “None.”
- If the line is under a heading, it might be a heading style's bottom border. Select the heading, go to Borders and Shading, and set the border to None.
The border appears around each line of text instead of the whole paragraph.
This happens when “Apply to” is set to “Text.” Select the paragraph, open Borders and Shading, and change Apply to to “Paragraph.”
I can't see the Borders button.
The Borders button is in the Paragraph group on the Home tab. If your window is narrow, it might be hidden behind a small arrow. Click the arrow to expand the group and find the Borders button.
The border is too close to the text or too far away.
In the Borders and Shading dialog, click the Options button. You can adjust the margins between the border and the text (Top, Bottom, Left, Right). This only works for paragraph and page borders.
I added a page border but it doesn't print.
Go to File > Options > Display and check “Print background colors and images.” If that's unchecked, page borders won't print.
Frequently Asked Questions
How do I add a line under a heading without it being a border?
You can use a bottom border on the paragraph. Select the heading, go to Home > Borders > Bottom Border. This creates a line that spans the width of the paragraph. To make it shorter, you can use a tab with a leader, but that's more complex.
Why does my border extend to the edge of the page?
That's a page border, not a paragraph border. Page borders are set to the page edges by default. You can adjust the margins in the Borders and Shading dialog under Options.
Can I save a custom border style for reuse?
Yes. After you create a border, you can select the text with the border, go to Home > Borders > Borders and Shading, and then click “Set as Default.” This will apply the same border to future paragraphs with the same style.
How do I remove only the top border of a table?
Select the table, go to Table Design > Borders > Borders and Shading. In the dialog, click the top border button in the Preview to deselect it, then click OK.
Why is my border not showing in the document?
Check that you're in Print Layout view (View > Print Layout). In Draft view, borders might not display. Also, make sure the border color isn't white or the width isn't set to 0.
Can I add a border to a single page in a multi-page document?
Yes. Go to Design > Page Borders. In the Apply to drop-down, choose “This section – First page only” or “This section – All except first page.” You may need to insert section breaks to isolate the page.