How to Fix Line Spacing in Thunderbird
In this article
Yes, you can fix line spacing in Thunderbird by adjusting the message display settings or modifying the userContent.css file for custom CSS rules. This ensures emails display with consistent, readable spacing, especially when viewing HTML messages or replies with excessive gaps.
What You'll Need
- Mozilla Thunderbird (latest stable version recommended)
- Access to your Thunderbird profile folder
- Text editor (like Notepad, TextEdit, or VS Code)
- Basic understanding of CSS (optional, for advanced fixes)
Step-by-Step
- Open Thunderbird and go to Tools > Settings (or Edit > Preferences on macOS/Linux).
- Navigate to the Display section, then click on the Formatting tab.
- Under Messages, check the setting labeled Use a fixed-width font for plain text messages. If enabled, this can affect spacing in plain text emails; disable it if spacing appears stretched.
- Click the Colors & Fonts button. In the new window, ensure the font sizes for both Proportional and Fixed-width are set to reasonable values (e.g., 12–16px).
- Uncheck Allow messages to use other fonts to prevent HTML emails from overriding your preferred spacing through embedded styles.
- Click OK to save font settings, then close the Settings window.
- To apply deeper fixes, close Thunderbird completely (check Task Manager or Activity Monitor to ensure it’s not running).
- Open your Thunderbird profile folder. To find it: go to Help > Troubleshooting Information, then click Open Folder next to Profile Folder. This opens your file browser to the profile directory.
- Inside the profile folder, look for a folder named
chrome. If it doesn’t exist, create it. - Inside the
chromefolder, check for a file nameduserContent.css. If it doesn’t exist, create it using your text editor. - Open
userContent.cssand add the following CSS rules to control line spacing:
/* Reduce line spacing in message body */
.moz-text-html,
.moz-text-plain,
body {
line-height: 1.2 !important;
}
/* Adjust spacing in quoted text */
blockquote {
margin: 8px 0 !important;
padding: 8px 0 !important;
}
/* Fix extra spacing in list items */
ul, ol {
margin: 0 0 8px 0 !important;
padding: 0 0 8px 0 !important;
}
- Save the file and close your text editor.
- Restart Thunderbird. Open an email with previously problematic spacing to test the changes.
- If spacing is still off, revisit
userContent.cssand increase or decrease theline-heightormarginvalues in small increments (e.g., 1.1 or 1.3). - For persistent issues, ensure no add-ons are injecting styles. Disable add-ons temporarily via Tools > Add-ons and Themes to test.
Common Mistakes
- Forgetting to close Thunderbird before editing files: Changes won’t apply if Thunderbird is running, as it may overwrite or ignore edits.
- Using incorrect CSS selectors: Typing
.moz-text-htmlas.moz_text_htmlor missing the dot prefix will prevent rules from applying. - Not creating the
chromefolder: Thunderbird won’t readuserContent.cssunless it’s in achromesubfolder within the profile. - Editing the wrong profile: If you have multiple profiles, ensure you’re editing the active one shown in Troubleshooting Information.
- Overriding with !important too aggressively: While necessary in some cases, excessive use can cause unintended layout issues in complex HTML emails.
Tips
- Back up your
userContent.cssfile before making changes so you can revert if needed. - Use decimal values for
line-height(like 1.2) instead of pixels for better responsiveness. - Test changes on both plain text and HTML emails, as spacing issues may appear only in one format.
- Consider using a code editor with CSS syntax highlighting to avoid typos.
- If you receive emails with embedded styles, disabling Allow messages to use other fonts in Fonts settings helps maintain consistent spacing.
- Use browser developer tools (like Firefox) to inspect email HTML structure if customizing further.
Troubleshooting
If line spacing remains unchanged after following the steps:
- Verify the profile folder: Double-check that you edited the correct
userContent.cssin the active profile. Use Help > Troubleshooting Information to confirm the folder path. - Check file name and location: Ensure the file is named exactly
userContent.css(notuser-content.cssoruserContent.txt) and is inside thechromefolder. - Restart Thunderbird fully: Simply closing the window may not terminate the process. Use Task Manager (Windows) or Force Quit (macOS) to ensure it’s fully closed before restarting.
- Test with a new message: Open a message you haven’t viewed before, as cached messages might not reflect changes immediately.
- Disable conflicting add-ons: Some themes or readability extensions may override CSS. Disable them temporarily to isolate the issue.
- Clear email cache: Go to Tools > Settings > Advanced > Network & Storage, then click Empty Cache to force reload message formatting.
- Recreate userContent.css: Delete the file, restart Thunderbird, then recreate it with the correct CSS to rule out encoding issues.
Frequently Asked Questions
Does this work for both incoming and outgoing emails?
Yes, the CSS rules affect how emails are displayed when viewing them. Outgoing message formatting depends on your composition settings, not userContent.css.
Can I adjust line spacing only for specific senders?
No, userContent.css applies globally. You’d need per-sender filtering or add-ons for targeted formatting, which Thunderbird doesn’t support natively.
Why doesn’t userContent.css work even after following all steps?
Thunderbird may not load custom CSS if the file is malformed or in the wrong location. Double-check folder structure, file name, and CSS syntax. Also, ensure no antivirus is blocking file access.
Is editing userContent.css safe?
Yes, it’s a standard method supported by Thunderbird. It only affects display and won’t corrupt data. Always back up the file before editing.
Will this fix spacing in quoted text (replies)?
Yes, the provided CSS includes rules for blockquote elements, which handle quoted text. Adjust the margin and padding values to fine-tune spacing.
Can I use this method on Thunderbird for mobile?
No, Thunderbird for Android does not support userContent.css. The steps apply only to desktop versions (Windows, macOS, Linux).