Remove Blank Space Above Text and a Horizontal Line in Word
Question details
The user wants to remove a large blank area between a horizontal line and text in a Word document.

- Product
- Microsoft Word
- Device & OS
- not provided
- Scenario
- A document contains a horizontal line and text that may be inside a table, text box, or other drawing object.
- Observed behavior
- The blank area remains after adjustments to paragraph spacing, widow and orphan control, borders, and table formatting.
Open the document in Word and select Home > Show/Hide ¶ to reveal paragraph marks and table boundaries. Click near the line to check whether it is a shape, a paragraph border, or part of a table or text box.
Inspect and remove hidden spacing around the line
Use this approach to identify empty paragraphs, table rows, or border settings that may be creating the gap.
Select Home > Show/Hide ¶ and look for empty paragraph marks between the line and the text. Select and delete any unnecessary empty paragraphs.
Click in the area around the line. If Table Layout appears, inspect the table for an empty row; select an unnecessary row and choose Table Layout > Delete > Delete Rows.
Right-click the table and select Table Properties. On the Row tab, check whether a specified row height is creating extra space; also check cell margins under Table > Options.
Click in the paragraph associated with the line, then select Home > Borders > Borders and Shading > Options. Review the distance from the text and reduce it if it is creating the gap.

Replace a floating line with an inline shape
Use an inline shape when a floating line or its text wrapping causes unpredictable spacing.
Edit Word Documents with WPS Writer
WPS Office is a free, lightweight alternative with a familiar interface for opening and editing Word documents. Its paragraph, table, and shape tools help you work with document spacing while moving between Office formats.

Frequently Asked Questions
How do I see whether empty paragraphs are causing the gap?
In Word, select Home > Show/Hide ¶. Empty paragraphs appear as paragraph marks; select and delete any that are not needed.
Why does the blank space remain after I change paragraph spacing?
The space may come from an empty table row, a specified row height, cell margins, a paragraph border, or a floating object. Click around the line and inspect Table Properties, Borders and Shading, or the object's layout options.
How can I tell if the line is a paragraph border?
Click in the paragraph next to the line and open Home > Borders > Borders and Shading. A paragraph border is controlled there rather than through a selected shape's layout options.
How do I keep a line positioned with the surrounding text?
Select the line shape and choose Layout Options or Wrap Text > In Line with Text. Then adjust the spacing of the paragraph containing the line through Home > Paragraph settings.




