Skip to content
Tutorials Center
My learning

Topics

Lesson 20 of 42 ยท Tables, Images and Graphics

Formatting Tables in Word

Make Word tables look professional: Table Styles, borders, shading, cell alignment, margins, repeating header rows, AutoFit and keeping rows from splitting.

A table with default formatting is readable, but a few well-chosen settings make it look finished and keep it usable across several pages. Formatting lives on the two contextual tabs that appear when your cursor is inside a table: Table Design (looks) and Layout (structure and alignment).

If you have not met tables yet, start with Tables in Microsoft Word.

Table styles

On Table Design, the Table Styles gallery applies borders, shading and heading emphasis in one click. Hover to preview. To the left, Table Style Options are checkboxes that decide which parts the style emphasizes:

  • Header Row and Total Row: bold or shaded first and last rows.
  • First Column and Last Column: emphasized edges.
  • Banded Rows and Banded Columns: alternating shading that helps the eye follow a line.

Pick a style that matches your document's theme colors. Because table styles use theme colors, changing the theme (Design > Colors) recolors every table at once. That is the same idea as paragraph styles, which you can read about in the Styles and Templates chapter.

Use Table Styles > New Table Style if you want to save your own, for example with a thin gray grid and a dark header.

Borders and shading

The Borders button (Table Design) has presets: All Borders, Outside Borders, No Border, and so on. For finer control, use Borders and Shading... and set three things in order:

  1. Style, Color and Width in the Border Styling group on the ribbon (the Pen settings).
  2. Then apply to edges by clicking the preset or the individual line buttons in the dialog.
  3. Check Apply to: cell, paragraph, or table. A common surprise is applying a border to the paragraph instead of the cell.

Shading fills selected cells with a color. Use light fills, and make sure the text keeps strong contrast. Never rely on color alone to give meaning.

Show a table whose borders are off by turning on View Gridlines (Layout tab). Gridlines are only a screen guide and do not print.

Alignment and spacing

On the Layout tab, the Alignment group has nine buttons: top, center and bottom, each left, center or right. Text direction (Text Direction) rotates text for narrow column headings.

Click Cell Margins to set padding inside every cell, and AutoFit for column behavior:

  • AutoFit Contents resizes columns to their text.
  • AutoFit Window makes the table fill the page width.
  • Fixed Column Width stops columns from shifting as you type.

For numbers, right-align the column, or use a decimal tab (Ctrl+Tab inserts a tab inside a cell) so the decimal points line up.

Long tables across pages

Three settings stop long tables from looking messy:

  • Repeat Header Rows (Layout > Repeat Header Rows). Select the first row and turn this on. The header appears again at the top of each page.
  • Allow row to break across pages (Table Properties > Row). Switch it off so a row is never cut in half.
  • Keep with next (Home > Paragraph dialog > Line and Page Breaks). Apply it to rows that must stay together.

You can also set the table's Text wrapping to Around in Properties > Table, which lets paragraphs flow beside a small table. Leave it on None for ordinary tables, because floating tables are harder to edit.

Why styles beat manual formatting

If every table is formatted by hand, changing the look later means touching each one. With one table style, you change the style and all tables follow. This stand-in imitates the cascade: a style gives defaults, and a manual override wins. It is Python, not Word.

Python Style defaults and overrides (stand-in)

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

An HTML table shows the same ideas visually: banding, a header row, alignment and padding. Try changing the colors.

Banded table with right-aligned numbers

Accessibility notes

Screen readers announce header cells when navigating a table, but only if you mark them. Turn on Header Row in Table Style Options, and in Table Properties > Alt Text add a short description. Avoid merged and split cells, nested tables and blank cells used for spacing.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. Which setting makes the header row appear again on every page of a long table?

    Repeat Header Rows, on the Layout tab, repeats the selected top rows on each page.
  2. 2. What is the benefit of using a Table Style instead of formatting each table by hand?

    A style stores the formatting in one place, so one change updates all tables using it.
  3. 3. Gridlines in a table without borders are:

    View Gridlines is a non-printing aid for tables without visible borders.
  4. 4. Which AutoFit option keeps the columns from shifting as you type?

    Fixed Column Width keeps the widths you set.

Summary

  • Use Table Styles and Table Style Options for fast, consistent looks.
  • Borders and shading are set in Borders and Shading; check the Apply to scope.
  • Align numbers to the right and use cell margins for breathing room.
  • Repeat header rows, and stop rows from breaking across pages.
  • Keep tables simple and give them a header row for accessibility.

Next: Pictures and Text Wrapping