How to Remove an Extra Line Extending from a Word Text Box
Question details
The user needs to remove an unwanted line that is extending beyond the boundaries of a text box in a Word document.
- Product
- Word
- Device & OS
- not provided
- Scenario
- Formatting a text box where an inner line inappropriately extends past the box's outer edge.
- Observed behavior
- An extra line extends past the text box, which is usually caused by incorrect paragraph border settings, shading, or negative indentation applied to the text inside the box.
Enable the 'Show/Hide ¶' feature in the Home tab to reveal hidden paragraph marks, which will make it much easier to accurately select the specific paragraph causing the formatting issue.
Reset Paragraph Borders and Indentation
Use this solution to fix lines caused by paragraph border formatting or negative indentations pushing elements outside the text box.
Often, text copied from other sources or accidentally formatted will contain paragraph borders or negative indents. Because these apply to the text paragraph rather than the text box shape, they can spill over the text box boundaries.
Click inside the text box and carefully select the entire paragraph where the extra line originates. If selection is difficult due to shading, press Ctrl+A while your cursor is inside the text box to select all contents.
Navigate to the Home tab, click the drop-down arrow next to the Borders icon in the Paragraph group, and select 'No Border' to remove any unwanted lines.
Click the small launcher icon in the bottom-right corner of the Paragraph group to open the Paragraph settings dialog. Under the 'Indents and Spacing' tab, ensure the Left and Right indentation values are set to 0 or a positive number so they remain inside the text box.
Temporarily Remove Shading to Adjust Formatting
If heavy shading prevents you from properly clicking or selecting the paragraph that causes the extended line, remove the shading first.
Easily Manage Text Boxes and Formatting in WPS Writer
WPS Writer offers an intuitive interface for precise document formatting. You can effortlessly manage text boxes, paragraph borders, and spacing without frustrating layout glitches, making your document creation process smooth and efficient.
- 1. Open your document: Launch WPS Writer and open the document containing the text box.
- 2. Insert or select the text box: Go to the Insert tab to add a Text Box, or click on your existing text box to activate the Drawing Tools tab.
- 3. Format with precision: Use the Home tab to easily adjust paragraph indents, borders, and shading without the risk of elements extending beyond the box.

Frequently Asked Questions
Why does a line extend outside my text box in Word?
This usually happens when the text inside the box has a negative paragraph indentation or a paragraph border applied to it. Because these settings are tied to the text layout rather than the text box shape, they can push the line past the box boundaries.
How do I remove the outline of a text box completely?
To remove the outer boundary of the text box itself, click on the text box border to select it. Go to the Shape Format (or Drawing Tools Format) tab, click on 'Shape Outline', and select 'No Outline'.
What if I cannot select the text causing the extra line?
If background shading or a glitch makes it hard to use your mouse to highlight the text, click anywhere inside the text box and press Ctrl + A to select all the contents. You can then clear the formatting or adjust the paragraph settings.




