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:
| Style | Use it for |
|---|---|
| Heading 1 | Main sections, such as chapter titles |
| Heading 2 | Sections inside a chapter |
| Heading 3 | Smaller 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.
- Right-click the style in the Styles gallery on the Home tab, and choose Modify.
- The Modify Style dialog opens. Change the font, size, color, bold, italic, or alignment.
- For spacing and indents, use the Format button in the dialog and choose Paragraph.
- 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:
- Format a paragraph the way you want, or just click in any paragraph.
- Open the Styles options and choose Create a Style or New Style.
- Type a name, such as
Note. - 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.
- 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:
| Mistake | What happens | How to fix it |
|---|---|---|
| Making headings by hand with bold text | They don't show in the Navigation Pane or table of contents | Apply Heading 1 or Heading 2 |
| Formatting a heading directly after applying a style | That one heading looks different from the rest | Clear the extra formatting, and modify the style instead |
| Modifying a style when you meant to change one paragraph | Every paragraph with that style changes | Undo, then format only the selected text |
| Skipping heading levels | The document outline looks broken | Use the levels in order |
| Creating many near-identical custom styles | The gallery gets cluttered and confusing | Reuse 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 HabitsSleepMost adults need seven to nine hours of sleep each night.ExerciseAim 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.