Vertically Aligning Text and an Image

by Allen Wyatt
(last updated May 30, 2020)


Dann wants to position a floating image to the right of a left-aligned level-1 heading so that the tops of both the heading and image are level vertically. He knows how to do the positioning; he does it all the time. However, the image always sits ever-so-slightly higher than the heading text. There is no padding above the heading, and there are no extra pixels at the top of the image. He wants them absolutely level but can find no way to do this.

Vertical spacing can be a bit confusing, to be sure. This is especially true when you are trying to align the top of an image with the top of a line of text. The reason that it can be confusing is because there are so many variables that play into the mix. There are four primary variables, however, that you need to pay attention to:

  • Image Anchor. Make sure the image is anchored to the paragraph to which you are trying to align it.
  • Image Position. Make sure that the image is vertically positioned 0" below the paragraph to which it is anchored.
  • Space Before. Make sure the paragraph has no space before it.
  • Line Spacing. Make sure the paragraph's line spacing is set equal to the font size.

If any of these items are out of kilter, it can affect the vertical alignment between the image and the text. It is this last item—line spacing—that I suspect is the culprit in Dann's case. When you set a paragraph for single spacing (in the Paragraph dialog box), Word automatically assumes you want your line spacing at 120% of your text height. Thus, if your text is 10 pt., then single-spacing would result in 12 pt. line spacing. In other words, there is an automatic 2 points added above the text. It is the top of this 12-pt. line to which Word aligns the image.

The only way to get around this is, in the Paragraph dialog box, to set the Line Spacing setting to Exactly and make sure to enter a measurement equal to the height of your font. This should close up most of the vertical space that is bothersome.

That being said, understand that line spacing can be a bit messy, as each typeface can have its own "internal" whitespace. This is analogous to having extra pixels at the top of an image. The effect is that the image looks like it sits lower, vertically, than it actually does. With a font, there could be additional whitespace at the top of the characters that makes it look like they sit lower on the page than they do. (For instance, a 10 pt. typeface may actually only consume 9 pt. of vertical height, with an extra point of whitespace above the characters.)

The bottom line is that for any given typeface, you may have to play with your line spacing just a bit to get the exact vertical alignment you want. It is not unusual, for instance, when using a 14 pt. typeface to set the line spacing at 12 pt. to get the desired vertical positioning.

If you still cannot get your vertical positioning exactly as you want it, you might try placing your heading and your image into a two-column table, single-row table. (Heading in the left column and image in the right.) This should give you the ability to more precisely adjust the vertical relationship between the two elements.

Failing that, and particularly if you need to do this type of alignment for many documents, you may want to consider doing your page layout in a program specifically designed for that type of activity. For instance, InDesign provides you with a variety of tools that can give you greater control over positioning than you ever could do with Word.

WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (13764) applies to Microsoft Word 2007, 2010, 2013, 2016, 2019, and Word in Microsoft 365.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...


Make AutoCorrect Pay Attention to Character Case

If you rely on AutoText (as most Word users do), you may have noticed that it doesn't always give the desired results ...

Discover More

Moving Footnote Text into the Document

Need to move the contents of a footnote up into the main body of your document? You can use normal editing techniques to ...

Discover More

Making a Named Range Non-Scrollable

Excel provides a few ways that you can freeze or split what you see in your worksheet. The appropriateness of these tools ...

Discover More

Learning Made Easy! Quickly teach yourself how to format, publish, and share your content using Word 2013. With Step by Step, you set the pace, building and practicing the skills you need, just when you need them! Check out Microsoft Word 2013 Step by Step today!

More WordTips (ribbon)

Grouping Images Changes Text Wrap to Inline

When you group images together, Word needs to figure out how to set the text wrapping for the new group. This tip ...

Discover More

Changing Compression Print Resolution

The resolution at which Word compresses graphics in a document may be bothersome. If it is, your options are very ...

Discover More

Counting All Graphics

Need to know how many graphics a document contains? Getting at the true number may take a little more work than it first ...

Discover More

FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.


If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is nine minus 5?

2020-05-30 07:01:37

Timothy Rylatt

"When you set a paragraph for single spacing (in the Paragraph dialog box), Word automatically assumes you want your line spacing at 120% of your text height."

This is incorrect. Default line spacing is defined in the font. When setting line spacing to single Word reads the default spacing from the font. As a result the percentage spacing will vary from one font to another.

Although the 120% spacing is certainly true for Times New Roman other fonts differ. The default line spacing for Arial, for example, is approximately 100%.

This Site

Got a version of Word that uses the ribbon interface (Word 2007 or later)? This site is for you! If you use an earlier version of Word, visit our WordTips site focusing on the menu interface.


FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.