A NSW Government website
Search for a command to run...
Line height controls the vertical spacing between lines of text. In the NSW Design System email framework, we use unitless line-height ratios to ensure text scales with font size and remains consistent across fallback fonts. This is especially helpful in email clients like Outlook on Windows, which often ignore web fonts and default to Segoe UI or Arial.
Using unitless values also improves mobile readability and reduces inconsistencies between email clients.
A unitless value like line-height: 1.5 works whether the text is 14 px or 18 px.
If Public Sans doesn't load, fallback fonts like Segoe UI, Arial or Roboto still display with balanced spacing.
Keyword values like normal vary by font, and fixed pixel values can clip in Outlook.
The NSW Email Design System defines default unitless line-height ratios based on pixel targets. Use these as starting points when creating custom styles.
| Style | Font size (px) | Line height |
|---|---|---|
| display-lg | 64 → 80 | 1.25 |
| display-md | 48 → 64 | 1.33 |
| display-sm | 36 → 48 | 1.33 |
| Style | Font size (px) | Line height |
|---|---|---|
| headline-lg | 30 → 40 | 1.33 |
| headline-md | 24 → 32 | 1.33 |
| headline-sm | 20 → 28 | 1.4 |
| Style | Font size (px) | Line height |
|---|---|---|
| body-lg | 18 → 28 | 1.56 |
| body | 16 → 24 | 1.5 |
| body-sm | 14 → 20 | 1.43 |
| body-xs | 12 → 16 | 1.33 |
Smaller text and longer lines benefit from more vertical space.
Outlook may add extra leading or interpret unitless line heights inconsistently when web fonts fall back. To address this, the NSW Design System email framework applies an MSO-only reset that sets:
<!--[if mso]>
<style>
/* Applied by the framework to normalise Outlook spacing */
td, th, p, a, span, h1, h2, h3, h4, h5, h6 { mso-line-height-rule: exactly; }
</style>
<![endif]-->This forces Outlook to use the specified line height (for example, 1.5) exactly, rather than its default “at least” setting, which can make paragraphs look too loose.
line-height values on headings and body text. Combined with the MSO reset, this produces predictable spacing.<br> tags for layout spacing.Many email clients collapse <p> tag margins. For consistent layout:
<br> tags for vertical space.