Keeping an Image Centered in a Table Cell

by Allen Wyatt
(last updated June 5, 2021)

Michael wonders how he can center a picture or graphic in a table cell, both vertically and horizontally, and have it stay centered if the cell changes size. He has tried several methods proposed by various websites and forums, but they have all either not worked or been too cumbersome to use.

Before figuring out how to center your image in a table cell, you must understand that there are two ways that graphics can be inserted in a Word document: floating or inline. The format used by Word depends on what you are inserting. If you insert a graphic, it is inline by default. If you insert a shape, it is floating by default. When putting a graphic in a table cell, you'll never be able to really get it right (and keep it right) if the graphic is floating. You need to make sure it is inline. An inline graphic is pulled off of the graphic "layer" and placed in line with the text that surrounds it. It is, essentially, treated like any other textual character.

So, to put your graphic in the table cell, you need to click within that table cell. I find it very helpful to turn on the display of non-printing characters while doing this. (Click the Show/Hide tool in the Paragraph group on the Home tab of the ribbon.) With non-printing characters displayed, you can easily tell if there are any extraneous characters in the table cell. The only thing you want in the cell is the end-of-cell marker, which looks like a small circle with four little "tails" attached to it. If you have other text in the cell (in addition to graphic you want there), it will throw off your centering efforts.

Make sure the insertion point is just in front of the end-of-cell marker, and then insert the picture. You can make sure the graphic is inline (instead of floating) by right-clicking the just-inserted graphic to display a Context menu. Choose, from the menu, the Wrap Text option and then In Line with Text.

Now do a bit of resizing. Both your graphic and your table cell need to be sized so that the graphic fits fully inside the cell.

Now take care of your alignment by displaying the Layout tab of the ribbon. (This tab is visible when you are working inside of a table.) With the graphic selected or the insertion point otherwise located within the cell that contains the graphic, click the Align Center tool, which is in the Alignment group.

If you hover the mouse pointer over the Align Center tool, you see a ToolTip appear that explains that the tool centers text both horizontally and vertically within the cell. The graphic is centered because you made it inline, which means it is treated as your text is treated. The graphic should now remain centered—both horizontally and vertically—even if you resize the graphic or the cell containing the graphic.

There are a few caveats to this, and they have to do with how Word formats paragraphs. When you click the Align Center tool, Word automatically changes the paragraph alignment for the cell. (You can verify this by looking at the Home tab of the ribbon, where you'll see that the alignment indicated in the Paragraph group is changed to Center.) What it doesn't change, however, are other formatting settings such as indentation and spacing.

To correct this, display the Paragraph dialog box. With the insertion point still in the cell containing the graphic, display the Home tab of the ribbon and click the small icon at the lower-right corner of the Paragraph group. (See Figure 1.)

Figure 1. The Paragraph dialog box.

Set the Left, Right, Before, and After controls to 0. Set the Special drop-down list to None and the Line Spacing drop-down list to Single. Click on OK to apply the settings.

In addition, the table settings can affect how a graphic is centered in the cell. Again, display the Layout tab of the ribbon and click the Cell Margins tool (in the Alignment group). Word displays the Table Options dialog box. (See Figure 2.)

Figure 2. The Table Options dialog box.

Set the Top, Bottom, Left, and Right controls to 0 and feel free to clear the Automatically Resize to Fit Contents check box. Click OK, and these formatting settings are applied. Your graphic should now be exactly centered in the cell.

Finally, you should understand that the nature of your graphic itself can affect how centered it appears in your table cell. Some graphics have a transparency characteristic, which means that you can "see through" a portion of the graphic. If yours does, it may appear off-center when it really isn't. If you click once on your graphic, Word displays a thin-lined box around the graphic. It is this box, which is actually centered, as it represents the boundaries of the graphic as understood by 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 (13114) 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. ...


Consolidating Changes under a Single User

When using Track Changes, you may want to have your edits appear to be those of a different user. Here's how to fool Word ...

Discover More

Selectively Changing Endnotes to Footnotes

Want to turn some (but not all) of your endnotes into footnotes. Rather than do it manually, you can apply the shortcut ...

Discover More

Displaying Quick Document Statistics

Need to see how many pages, words, paragraphs, or lines are in your document? Word makes it easy to retrieve such ...

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)

Using the Selection Pane

When you need to arrange objects in relation to each other, one of the handy tools that Word provides is the Selection ...

Discover More

Writing On Top of Locked Graphics

Getting graphics to appear right where you want them in relation to the text in your document can be a challenge. One ...

Discover More

Can't Select and Edit Graphics Elements

Adding graphics to your documents can make them livelier and easier to understand. What if you can't select and edit the ...

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 five more than 2?

There are currently no comments for this tip. (Be the first to leave your comment—just use the simple form above!)

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.