How to Set a 2 mm Gap Between Header Text and a Horizontal Line in Word
Question details
The user wants to format a Word document header to include text and a horizontal line with an exact separation gap of roughly 2 mm, preferably avoiding the use of tables.
- Product
- Word
- Device & OS
- not provided
- Scenario
- Formatting a document header to meet specific layout constraints requiring a precise 2 mm space between the text content and the bottom horizontal line.
- Observed behavior
- Creating a header layout with text and a horizontal line separated exactly by a 2 mm gap.
Ensure your document header is active by double-clicking the top margin of your page before applying paragraph borders or adjusting table settings.
Apply a Paragraph Bottom Border
Apply a bottom border directly to the header paragraph and adjust the distance from the text to achieve the 2 mm gap without using a table.
This is the most efficient method as it avoids adding extra objects or tables to your header. By setting the border distance to 6 points, you achieve approximately a 2 mm gap.
Double-click the header area at the top of your document to enter editing mode.
Select your header text, navigate to the 'Home' tab, click the 'Borders' dropdown icon in the Paragraph group, and select 'Borders and Shading' at the bottom.
In the Borders tab, choose a line style and click on the bottom border position in the Preview section.
Click the 'Options' button in the lower right corner. In the 'Distance from text' section, set the 'Bottom' value to 6 pt (approximately 2 mm) and click 'OK'.
Use a One-Cell Table
Insert a single-cell table in the header, hide all borders except the bottom one, and set the paragraph spacing to 2 mm.
Easily Format Headers with WPS Writer
WPS Writer provides intuitive border and paragraph spacing settings, making it incredibly easy to set precise distances like a 2 mm gap in your document headers without layout frustration.
- 1. Edit Header: Open your document in WPS Writer and double-click the header area to edit it.
- 2. Access Borders: Select your text, go to the 'Home' tab, click the 'Borders' icon, and select 'Borders and Shading'.
- 3. Set Gap Distance: Apply a bottom border, click 'Options', and input 6 pt for the bottom distance to create a perfect 2 mm gap.

Frequently Asked Questions
How do I convert millimeters to points in Word?
One millimeter is approximately 2.835 points. To get a 2 mm gap, you can set your spacing or border distance to about 5.67 points (usually rounded to 6 points for simplicity). Alternatively, Word allows you to directly type '2 mm' in many measurement boxes, and it will convert it automatically.
Why is the horizontal line in my header too close to the text?
This happens when the paragraph border distance or spacing is set to 0. You can increase the gap by selecting the text, going to 'Borders and Shading' > 'Options', and increasing the 'Bottom' distance value.
Can I use the horizontal line tool instead of a paragraph border?
Yes, you can insert a horizontal line object, but controlling the exact millimeter distance between text and a standalone line object can be trickier than using paragraph spacing or a bottom border. Using a paragraph bottom border is generally more precise.




