A line made of underscores (____) moves when you type on it because each underscore is a character, and new text pushes the rest of them to the right. To write on a line in Word without the line moving, the line has to be something other than typed characters: a table cell’s bottom border, an underlined tab that shrinks as you type, or a text box placed on top of the line. If you’re filling in a form someone else made with underscores, turning on Overtype mode is the quickest workaround.
The steps below are for Word for Microsoft 365 on Windows. Most of them work the same way on a Mac.
Which Fix Fits Your Situation?
| Situation | Best fix |
|---|---|
| Filling in a form built from underscores | Overtype mode |
| Building a form others will type into | Table cell with a bottom border |
| A single “Name: ______” line in a paragraph | Underlined tab to a fixed tab stop |
| A line inside a scanned page, picture, or PDF you converted | Text box on top of the line |
Fill In an Underscore Line With Overtype Mode
Overtype replaces the character to the right of the cursor instead of pushing it along, so each letter you type takes the place of an underscore.
- Go to File > Options > Advanced.
- Under Editing options, check Use overtype mode, or check Use the Insert key to control overtype mode if you’d like to switch it on and off with Insert. Select OK.
- Click at the start of the underscores where your text should go.
- Type your text. The underscores disappear under the letters, and the rest of the line stays where it was.
- Turn overtype off again when you’re done, or you’ll overwrite text elsewhere by accident.
Your text replaces the line rather than sitting on it. If you want it to look written on the line, select what you typed and press Ctrl+U to underline it. Letters and underscores aren’t always the same width, so the line may end up slightly shorter or longer; delete or add a few underscores to even it out.
On a Mac, or anywhere you’d rather not change settings, select exactly as many underscores as your text needs, then type. Your text replaces the selection and the rest of the line stays put.
Build Lines That Never Move: Use a Table
If you’re creating a form, a table with only bottom borders is the most dependable choice. The line belongs to the cell, not to the text, so typing can’t push it anywhere.
- Go to Insert > Table and choose two columns and as many rows as you need blanks.
- Type labels such as Name: and Date: in the left column.
- Select the whole table, then go to Table Design > Borders and choose No Border.
- Select only the cells in the right column.
- Go to Table Design > Borders and choose Bottom Border. A line appears under each answer cell.
- Drag the column divider to set the label width and line length you want.
Click in any answer cell and type. The text sits right on the line and the line never shifts. If someone types more than fits, the text wraps inside the cell and the line drops down to stay under it instead of breaking the layout.
For a single line under a whole paragraph, such as a signature line, a paragraph border works the same way. Our guide on adding a bottom border in Word covers it.
Use an Underlined Tab That Shrinks as You Type
A tab stretches to reach the next tab stop. When you type in front of it, the tab gets shorter, so the end of the line stays in place.
- Type your label, such as Name:, and a space.
- On the ruler, click where the line should end to set a tab stop. For an exact spot, use the Tabs button in the Paragraph dialog.
- Press Tab once to reach that stop.
- Select the tab by pressing Shift+Left Arrow, then press Ctrl+U to underline it.
- To fill it in, click just before the tab (at the start of the line) and type. Your text picks up the underline, the tab shrinks, and the line still ends at the same place.
You can also set the tab stop with the underline leader (option 4 in the Tabs dialog) so the line draws itself. Typed text then sits on top of the leader. For more on tab stops and leaders, see how to set tabs in Word.
This method works for a line or two, but if your text grows longer than the line, it passes the tab stop and wraps. Use the table method for anything longer.
Type Over a Line You Can’t Change With a Text Box
When the line is part of a picture, a scanned form, or a drawn shape, put your text in a floating text box on top of it.
- Go to Insert > Text Box > Draw Text Box.
- Drag a box just above the line and type your text.
- On the Shape Format tab, set Shape Fill to No Fill and Shape Outline to No Outline.
- Select the Layout Options button beside the box and choose In Front of Text.
- Nudge the box into position with the arrow keys. Hold Ctrl while pressing an arrow key for smaller moves.
By default, a text box is anchored to a nearby paragraph and moves when that paragraph moves. To lock it to the spot on the page, open Layout Options again and choose Fix position on page.
Fix an Existing Document Whose Lines Keep Moving
- Turn on formatting marks with Ctrl+Shift+8 to see whether each line is underscores, underlined spaces, tabs, or a border.
- Replace underscore lines with underlined tabs or a table using the steps above. Word’s Find and Replace can find runs of underscores so you can review each one.
- Watch AutoFormat. Typing three or more underscores and pressing Enter can turn them into a full-width border line. Press Ctrl+Z right away to undo it.
If you only need blank lines for a printed form, our guide to underlining without text in Word compares every way to create them. For forms people will fill in on screen, consider fillable fields instead of lines.
Questions about writing on lines in Word
Why does my text go below the line instead of on it?
The line is probably a paragraph border or a drawn shape, and your text is in the next paragraph. Click in the paragraph that owns the border and type there, or switch to the table method.
Can I make the line stay the same length no matter what I type?
Yes. Table cells and fixed tab stops keep the line length set by the layout, not by your text. Underscores can’t, because they’re part of the text.
Do these methods work in Word for the web?
Tables with bottom borders and underlined text work in Word for the web, and selecting underscores before you type works everywhere. Overtype mode and the Tabs dialog are desktop features, so use the Word app for those methods.

Matt Wilmont is a data scientist who has used Microsoft Office daily since 1999 and has more than 20 years of IT experience. His work with Word, Excel and Windows runs from college through a career in IT to data analysis today. He writes and reviews the guides on WindowBrain. Read more on the About page: https://windowbrain.com/about-us/