Styles

By the Syncfusion DevTutorials team · Last updated

Use heading and normal styles, modify them, create your own, then build a full report in the Chapter 5 project.

Imagine a 30-page report with 40 headings. Your manager asks for every heading to be blue instead of black. If you formatted each heading by hand, that's 40 changes. With styles, it's one. In this lesson, you'll learn how styles work, use the built-in heading and normal styles, change them, and create your own. Then you'll finish the chapter with a full report project.

Open the Word sandbox and follow along.

What is a style?

A style is a saved set of formatting with a name, such as Heading 1: a font, size, color, spacing, and more, all in one. Apply the style, and the text gets every setting at once.

The styles are in the Styles gallery on the Home tab. Click inside a paragraph, then click a style to apply it.

The big win: when you change a style, every paragraph that uses it updates instantly. Format with styles, and you can restyle a whole document in seconds.

Heading styles

The most important built-in styles are the heading styles. Heading 1, Heading 2, and Heading 3 are built-in styles for the titles in your document:

StyleUse it for
Heading 1Main sections, such as chapter titles
Heading 2Sections inside a chapter
Heading 3Smaller parts inside a section

Headings do more than look big. Word uses them to build the Navigation Pane (Lesson 16) and an automatic table of contents (Lesson 20). Keep the document title separate from section headings; use a heading style for a title only when you want it treated as a section heading. Always use heading styles for section headings instead of only making the text bold or larger.

Normal style

After headings, the next style to know is the one for ordinary paragraphs. Normal is the style for body text. Most new body-text paragraphs use Normal. When you change the Normal style's font or size, paragraphs using that style update too.

To change the font of the body text, modify the Normal style instead of selecting every paragraph. Some heading styles may inherit settings from Normal, so check your headings after you change it.

Modify styles

Knowing the styles is only half of it: the real power is changing them to match your document.

  1. Right-click the style in the Styles gallery on the Home tab, and choose Modify.
  2. The Modify Style dialog opens. Change the font, size, color, bold, italic, or alignment.
  3. For spacing and indents, use the Format button in the dialog and choose Paragraph.
  4. Click OK.

Every paragraph that uses the style updates straight away.

Custom styles

Sometimes the built-in styles aren't enough. When you need a special look for notes or quotes, create your own:

  1. Format a paragraph the way you want, or just click in any paragraph.
  2. Open the Styles options and choose Create a Style or New Style.
  3. Type a name, such as Note.
  4. Set the formatting and choose which style it is based on (usually Normal). This means the new style starts with settings from the style you choose.
  5. Click OK. Your style appears in the gallery, ready to use anywhere in the document.

A style is saved inside the document. If you want the same custom styles in future documents too, save the document as a template (Lesson 22).

Common mistakes

Here are the most common traps, and how to fix them:

MistakeWhat happensHow to fix it
Making headings by hand with bold textThey don't show in the Navigation Pane or table of contentsApply Heading 1 or Heading 2
Formatting a heading directly after applying a styleThat one heading looks different from the restClear the extra formatting, and modify the style instead
Modifying a style when you meant to change one paragraphEvery paragraph with that style changesUndo, then format only the selected text
Skipping heading levelsThe document outline looks brokenUse the levels in order
Creating many near-identical custom stylesThe gallery gets cluttered and confusingReuse and modify the styles you have

Exercise

Now it's time to work with styles yourself.

Click New in the sandbox title bar, and type these paragraphs:

  • Healthy Habits
  • Sleep
  • Most adults need seven to nine hours of sleep each night.
  • Exercise
  • Aim for at least thirty minutes of activity on most days.
  • Tip: Small changes add up over time.

Now do each task and press Check.

Chapter project

You've now learned headers and footers, links, and styles. Time to put Chapters 1 to 5 together. You'll turn plain text into a two-page report with heading styles, a header, page numbers, a numbered list, and a link that jumps inside the document.

Kenya wildlife report

What to remember

  • A style is a named set of formatting. Apply it from the Styles gallery on the Home tab.
  • Heading 1, 2, and 3 give your document structure; Normal is for body text.
  • Modify a style (right-click > Modify) to update every paragraph that uses it.
  • Create custom styles for repeated looks, like notes or quotes.
  • Format with styles, and restyling a whole document takes seconds.

That's the end of Chapter 5. In Chapter 6, you'll review documents with views, comments, and track changes.