Vertically Aligning Text and an Image

Written by Allen Wyatt (last updated April 22, 2024)
This tip applies to Word 2007, 2010, 2013, 2016, 2019, and Word in Microsoft 365


1

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

MORE FROM ALLEN

Referencing the Last Cell in a Column

When developing formulas, you may need to reference the very last value in a particular column. This can seem perplexing, ...

Discover More

Getting Help when Entering Functions

Need a quick memory jog when entering a worksheet function? Here's a shortcut that will be invaluable.

Discover More

Tracing Precedents and Dependents Clears Undo Stack

Excel normally allows you to undo actions you take so that you can "step back" through what you may have been doing. ...

Discover More

The First and Last Word on Word! Bestselling For Dummies author Dan Gookin puts his usual fun and friendly candor back to work to show you how to navigate Word 2013. Spend more time working and less time trying to figure it all out! Check out Word 2013 For Dummies today!

More WordTips (ribbon)

Rotating Fractions in a Text Box

Rotating graphics in Word is not always straight-forward, but it can be done. This tip examines a special need to ...

Discover More

Converting Tables to Charts

Put numeric information in a table and you can then convert that information to a graphical chart using Microsoft Graph ...

Discover More

Setting the Wrapping Default for Objects

Want to have objects such as text boxes and shapes always appear using some formatting you like? Here are some ideas on ...

Discover More
Subscribe

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

View most recent newsletter.

Comments

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 two more than 7?

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.

Videos
Subscribe

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.