logo
search
Formatting Issues

How to Set a 2 mm Gap Between Header Text and a Horizontal Line in Word

Maira MehtabMaira Mehtab Sep 20, 2026 869 views

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.
Before you start

Ensure your document header is active by double-clicking the top margin of your page before applying paragraph borders or adjusting table settings.

Solution 1Recommended

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.

1
Edit Header

Double-click the header area at the top of your document to enter editing mode.

2
Open Borders and Shading

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.

3
Apply Bottom Border

In the Borders tab, choose a line style and click on the bottom border position in the Preview section.

4
Set 6 pt Distance

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'.

Conversion Tip: 1 millimeter is approximately 2.835 points. Setting the gap to 6 points gives you a very close approximation of 2 mm.
Easy Document Formatting

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. 1. Edit Header: Open your document in WPS Writer and double-click the header area to edit it.
  2. 2. Access Borders: Select your text, go to the 'Home' tab, click the 'Borders' icon, and select 'Borders and Shading'.
  3. 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.
Easily adjust header and footer borders with precise point or millimeter measurements.Fully compatible with Microsoft Word document formats (.docx, .doc).Clean, intuitive interface for fast document formatting.Free and lightweight alternative to Microsoft Office.
microsoft office alternative - wps office

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.