How to align text in Word with ruler

Updated: 12/30/2021 by Computer Hope

Below are the steps on how to change or move the alignment of text in a word processor and most text editing programs. View the steps for the program you are using by clicking one of the links below.

Tip

The steps below are for changing the alignment of text in Microsoft Word. They can also be used to align text in a column or row for Microsoft Excel and most other text programs.

How to align text in Word with ruler

To change the horizontal alignment of text in Word, highlight the text you want to change and click the left, center, or right alignment icons, as shown in the image. In all new versions of Microsoft Word, the alignment options are found under the Home tab.

  • How to highlight or select text.

or

Press one of the shortcut keys to adjust the alignment of any highlighted text. For left alignment, highlight the text and press Ctrl+L to align text to the left margin. For center alignment, highlight the text and press Ctrl+E. For right alignment, highlight the text and press Ctrl+R to align text to the right.

Adjusting the vertical alignment

If you want to change the vertical alignment of text, follow the steps listed below.

  1. Open Microsoft Word
  2. Click File and then Page Setup
  3. Click the Layout tab
  4. Under Vertical alignment, click the down arrow and select center, bottom, or the alignment you want to use. If you do not want this setting to affect the whole document, change the "Apply to" to the selected text.

Align text in WordPad

To change the horizontal alignment of text in WordPad, highlight the text and click the left, center, or right alignment icons in the Paragraph section of the menu bar.

How to align text in Word with ruler

  • How to highlight or select text.

Note

If you're working with a .txt file or save the file as a .txt file, all formatting is lost, including any alignment. If you want to align text in a .txt file, edit the file, and then use the Save As option to save it as a .rtf, .docx, or .odt.

Align text in Google Docs

How to align text in Word with ruler

In Google Docs, you can click one of the alignment options (left, center, right) in the top center of the toolbar.

or

Press one of the shortcut keys to adjust the alignment of any highlighted text.

  • For left alignment, highlight the text and press Ctrl+Shift+L.
  • For center alignment, highlight the text and press Ctrl+Shift+E.
  • For right alignment, highlight the text and press Ctrl+Shift+R.

or

  1. Open Google Docs
  2. Highlight the text you want to align.
  3. Click Format, Align, and then choose an alignment.
  • How to highlight or select text.

Align text in OpenOffice Writer

To change the horizontal alignment of the text in OpenOffice Writer, highlight the text you want to change and click the left, center, or right icons on the toolbar. These icons look similar to those shown in the above example picture of the Microsoft Word.

  • How to highlight or select text.

How to change the vertical alignment

OpenOffice Writer does not have a feature like Microsoft Word that lets you vertically align text. However, this can still be done using frames. To do this, follow the steps listed below.

  1. Open OpenOffice Writer
  2. Click Insert
  3. Click Frame
  4. In the Frame window under type, change the horizontal and vertical position to center and both to "Entire page."
  5. Because the frame has borders, unless you want to keep these borders, click the borders tab and click None under Style.
  6. Once done, you have a frame in the center of your page to enter any text and have it centered.

How to align text in Word with ruler

Word’s rulers let you control the margins of your page and the indentation of paragraphs. They’re great for precisely lining up images, text, and other elements. If you’re printing a document, the rulers can help ensure that what you see on your screen translates into what you’ll get on the printed page.

The trouble is, rulers aren’t even visible by default in Word anymore. Here’s how to turn them on, and how to make the most out of them.

Note: We’re working with Office 2016 in this article. The rulers have been around pretty much forever, though, and work similarly in previous versions of Word.

Activate the Rulers

First, make sure you’re in Print Layout view. On the Ribbon, switch to the “View” tab (all the way on the right). If “Print Layout” isn’t already highlighted, click it now.

How to align text in Word with ruler

Now look towards the center of the Ribbon. In the “Show” section, enable the “Rulers” option. You should immediately see the horizontal ruler above your document and the vertical ruler to its left.

How to align text in Word with ruler

Note: The horizontal ruler is also visible in Web Layout and Draft view. The vertical ruler is not.

Access the Page Setup Window

Double-click any empty space on the ruler to open the Page Setup window. This is the same window you can open from the Layout tab on the Ribbon.

How to align text in Word with ruler

The “Page Setup” window shows you most of the physical layout properties of the document. The “Margins” tab lets you set the margins for the top, bottom, left, and right, which you can verify with the markers on the ruler (see below). The Gutter is extra space on the page, usually used as an extra blank space for things like comb binding (those little plastic corkscrews that make a cheap notebook). It’s set as blank by default. You can also use this tab to control page orientation.

How to align text in Word with ruler

If you’re printing your document, the “Paper” tab lets you can change the physical size of the paper to match different paper sizes in your printer. The default is 8.5 inches by 11 inches, the standard “Letter” size for US paper printing (215.9 x 279.4mm). You can see the result of this setting in the digital rulers on the page, with the default 1-inch margins resulting in a 7.5-inch horizontal ruler and a 10-inch vertical ruler. If you’re planning on printing via a standard home printer or you’re using the primary tray in your office printer, leave this as is.

Change Margins On the Fly

Margins are indicated on the ruler by the gray and white areas. The gray areas at either end of the ruler represent your margin; the white areas the active page. The scaling of the rulers seems a little strange at first. It actually starts on the far left (or top for the vertical ruler) with a number indicating the size of your margin and then counts down. When it reaches the white, active area, it starts counting up again. You can see this in the image below, where I’ve set the margin to two inches.

How to align text in Word with ruler

In Word’s default 8.5 by 11-inch page setup, the horizontal ruler starts at 1 (indicating a one-inch margin), then resets at zero where the margin ends, then counts up to 7.5 for the remaining horizontal space. Ditto for the vertical ruler: starts at one for a one-inch margin, restarts at zero at the white space, and only goes up to ten.

How to align text in Word with ruler

Note: Word’s rulers show whatever measurement you have set in File > Options > Advanced > Show Measurements In Units Of. You can change measurements to centimeters, millimeters, points, or picas. Be aware, though, that this settings controls the units of measurement used throughout Word—not just the ruler.

You can also quickly adjust margins right from the ruler. Hold your mouse over the line separating the white and gray area. You’ll see the pointer turn to a double arrow and will likely see a tooltip letting you know you’re point at the margin. Now, just click and drag that line left or right to adjust that margin.

How to align text in Word with ruler

Change Indents on the Fly

Those little triangle- and box-shaped markers on the ruler are quite handy. They control the indenting of individual paragraphs. Just position your cursor in the paragraph you want to adjust and slide them around. If you want to change multiple paragraphs, select the paragraphs you want to change. And if you want to change indents throughout the whole document, just hit Ctrl+A (to select everything), and then adjust the sliders.

How to align text in Word with ruler

Here’s how each indent works.

Dragging the Left Indent marker changes the indentation for all lines of a paragraph. As you slide it, the other two indent markers move as well. Here, I’m moving the Left Indent half an inch in from the left margin.

How to align text in Word with ruler

Dragging the First Line Indent marker changes indentation for only the first line of a paragraph.

How to align text in Word with ruler

Dragging the Hanging Indent marker changes the indentation of all lines except the first line.

How to align text in Word with ruler

On the right end of the ruler, you’ll find only one marker: the Right Indent marker. Drag it to constrain the paragraph on the right side.

How to align text in Word with ruler

Add Tab Stops

A tab stop is the location your cursor moves to when you hit the Tab key. A default Word document has no tab stops, so each time you hit the Tab key, the cursor jumps ahead about eight characters. Setting tab stops lets you better control and line up text.

Of course, Word offers enough options that things get a little more complicated than that. If you look all the way to the left edge of your document, just above the vertical ruler, you’ll see the Tab Stop button.

How to align text in Word with ruler

Clicking this button lets you cycle through the different types of tab stops Word makes available. Here they are:

  • Left: Left tabs are Word’s default tap stop. They’re what most people think of when they think of tab stops, and what you’ll likely use most of the time. Text is aligned against the left edge of the tab stop.
  • Center: Center tabs align the text around the center of the tab stop.
  • Right: Right tabs align text against the tab stop’s right edge and are a great way to align the rightmost digits of lengthy lists of numbers as you enter them.
  • Decimal: Decimal tabs align numbers (or text) based on decimal points. They are great for aligning currency figures. Be careful, though. Text is also aligned on decimals, so if you type a sentence with a period, the period will align on the tab stop.
  • Bar Tab: Bar tabs do not create an actual tab stop. Instead, they create a vertical line wherever you insert them. You could use these for putting vertical lines between tabbed columns in instances where you’d rather not use a table.
  • Indents: Select first line and hanging indent options and then click anywhere in the active ruler space (the white area) to place the indent there. This works the same as dragging the indent markers the way we discussed in the previous section.

A little tip for you. If you’re cycling through tab stops and don’t remember what each symbol means, move your mouse away from the button and then back to activate a tool tip describing that tab stop.

How to align text in Word with ruler

To insert a tab stop, just use the button to select the type of stop you want. Now, point your mouse anywhere on the white portion of the horizontal ruler (toward the bottom of the ruler line), and then click. A symbol appears indicating the type of tab stop you’ve placed. This is a tab marker, showing where the text will jump to if you press the Tab button on your keyboard.

How to align text in Word with ruler

Here’s an example. In this paragraph, the Left Indent is half an inch from the left margin, the First Line indent is another half inch further in, and I’ve set a tab stop at two inches. I pressed the Tab button with my cursor in front of “Lorem,” so the text jumped to my manually-set tab point.

How to align text in Word with ruler

You can insert multiple tab markers if you want, and you can click and drag them around to reposition them on the fly.

How to align text in Word with ruler

To get rid of a tab marker, just drag it down (away from the ruler) and release the mouse button.

And, if you prefer to set up your tab stops manually (and a little more precisely), double-click any tab marker to open the “Tabs” window.

How to align text in Word with ruler

The ruler is just one of the little features in Word that packs a whole lot more functionality than most people realize. It provides a quick way to control margins, set various indents for a paragraph, and keep things in line using tab stops. Why Word leaves it turned off by default is beyond us, but at least now you know how to turn it back on and put it to use.