Underlining Cells, Not Space Between Cells

by Allen Wyatt
(last updated July 26, 2014)

6

Goldie wants to know if there is a way to underline table cells but not underline the spacing between cells. This would effect a break in the underlining between cells and not have just one continuous line across all the cells. (Goldie is referring to the actual cells here, not the words within the cells.) She added .05 spacing between the cells because she thought this would do it, but instead it just increased the length of the underlining for each cell so that the lines meet and create on big line.

The key to successfully doing this is to remember that there is a difference between cell borders and borders applied to contents within a cell. This means that there are multiple ways you can go about doing the formatting. Assuming you already have a table, follow these steps to see one way:

  1. Place the insertion point somewhere within the table.
  2. Display the Layout tab of the ribbon. (This tab is available only when you've completed step 1.)
  3. Click the Select tool (in the Table group) and then choose Select Table. Word selects the entire table.
  4. Display the Design tab of the ribbon.
  5. Click the Borders tool (in the Table Styles group) and then choose None. This makes sure that there are no borders on any of the cells in the table.
  6. Click the Borders tool again, but this time choose Borders and Shading (the last option available in the drop-down list). Word displays the Borders and Shading dialog box.
  7. Make sure the Borders tab is selected. (See Figure 1.)
  8. Figure 1. The Borders tab of the Borders and Shading dialog box.

  9. Using the Apply To drop-down list, choose Paragraph.
  10. Click the None preset at the upper-left corner of the dialog box.
  11. Click a line style from the Style list.
  12. In the Preview area, click the Bottom button or click at the bottom of the preview itself.
  13. Click OK.

Word applies a bottom border the width of the text area within each cell. If you later adjust the cell margins (as Goldie did), the width of the text within the cell changes, as does the width of the border.

For simple tables, this approach works great. The problem occurs when you have differing amounts of text in the cells in the table. Since the border always appears at the bottom of the text, this can lead to some funky results. (See Figure 2.)

Figure 2. Applying a bottom border to the paragraphs within a cell.

Of course, you could get around this funkiness a bit by formatting the cell contents so that they all are vertically aligned to the bottom of each cell. Besides moving all the text to the bottom of the cell (vertically), this also moves all the lines down to the bottom of each cell.

If you do a bit of inspecting in the Borders and Shading dialog box, you'll see that borders can be applied to Text, Paragraph, Cell, or Table. The Paragraph option is the only one that behaves as described so far. Further, it is the only one that responds to changes in the cell margins.

If, instead, you want the actual border to apply to the cells themselves, then the only way we've discovered to get the desired effect is to add "spacer columns" between your data columns. These columns can be very thin, but the idea is that they wouldn't contain any information at all—you would just use them to provide a buffer area between columns that would otherwise be abutting. You can then add bottom borders to all the cells in the table, but remove them from the cells in the spacer columns.

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

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

Turning Off Paragraph Hyphenation

Need to make sure that a particular paragraph never has any hyphenated words in it? You can make sure that Word won't ...

Discover More

Extending a Paragraph into the Left Margin

Word allows you to format a paragraph so that it extends into the left margin of the document. This is done by setting a ...

Discover More

Jumping to the End of Page after Enter

Imagine you start typing in a new document, and when you press the Enter key the cursor jumps a huge distance to the bottom ...

Discover More

Create Custom Apps with VBA! Discover how to extend the capabilities of Office 2013 (Word, Excel, PowerPoint, Outlook, and Access) with VBA programming, using it for writing macros, automating Office applications, and creating custom applications. Check out Mastering VBA for Office 2013 today!

More WordTips (ribbon)

Applying Consistent Shading to a Table

Formatting tables can be very time consuming. When you get a document from another person, you can spend a lot of time ...

Discover More

Automatic Page Numbers across Multiple Documents

Word allows you to specify the starting page number for a document, which comes in handy if you have multiple documents you ...

Discover More

Hiding Table Gridlines, by Default

The edges to table cells are shown two ways in Word: gridlines and borders. Table gridlines are only seen in Word; they do ...

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}] 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 4 + 1?

2017-07-14 13:42:51

James S

OMG, seriously I just want to say thank you! I'm a director of financial reporting for a company creating the company's financial statements in word and could not figure this out for the main tables. I've looked for hours and finally stumbled upon this page, thank you thank you thank you!


2017-05-17 08:06:58

Karen

Thank you so much!!!!


2016-02-03 19:45:56

Tmama

This tip helped me to be able to get rid of the thick bottom lines inside each cell. There was just no need for them to be there and I was not the one who created the table and I needed them gone! Wha La!


2014-07-28 07:38:53

awyatt

K.Vee: Using Ctrl+U won't give the results discussed in the tip and shown in Figure 2.

-Allen


2014-07-28 00:15:22

K.Vee.Shanker.

I'm not sure what other purpose this lengthy tip served than highlighting a sentence/cell content in a table. If so, why not just select the cell/sentence and apply contl+U?

Further, single sentence/word in cells can be centered using the 'Cell Alignment' feature to get over the odd look!


2014-07-26 12:44:37

shishpal singh

Well explained, Thanks


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.

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