How do I reduce font size in mail compose in Thunderbird with CSS?


xazs

Banned
Local time
8:43 PM
Posts
75
OS
11
I'm trying to reduce the font size in Thunderbird mail compose window's message body where you write a message. I need a CSS code for that. Does anyone know?

vvv.webp
 

My Computer

System One

  • OS
    11
    Computer type
    PC/Desktop
    Manufacturer/Model
    msi
I don't use Thunderbird anymore but I found this in my old notes...if it still works.

CHANGE FONT SIZE
tools-options-all way to bottom-config editor
in search box type 'devpixels'
right click on 'devpixelsperPX-modify
default value is -1.0
depending on screen size change this value to any value until you get size you want.
(ex: 1.0, 1.25, 1.5, etc) 1.5 is good on 27 in. screen)
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 25H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Optiplex 7080
    CPU
    i9-10900 10 core 20 threads
    Motherboard
    DELL 0J37VM
    Memory
    32 gb
    Graphics Card(s)
    none-Intel UHD Graphics 630
    Sound Card
    Integrated Realtek
    Monitor(s) Displays
    Benq 27
    Screen Resolution
    2560x1440
    Hard Drives
    2x1tb Solidigm m.2 nvme /External drives 512gb Samsung m.2 sata+2tb Kingston m2.nvme
    PSU
    500w
    Case
    MT
    Cooling
    Dell Premium
    Keyboard
    Logitech wired
    Mouse
    Logitech wireless
    Internet Speed
    so slow I'm too embarrassed to tell
    Browser
    #1 Edge #2 Firefox
    Antivirus
    Defender+MWB Premium
  • Operating System
    Windows 11 Pro 24H2 26200.8457
    Computer type
    PC/Desktop
    Manufacturer/Model
    Beelink Mini PC SER5
    CPU
    AMD Ryzen 7 6800U
    Memory
    32 gb
    Graphics card(s)
    integrated
    Sound Card
    integrated
    Monitor(s) Displays
    Benq 27
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Crucial nvme
    Keyboard
    Logitech wired
    Mouse
    Logitech wireless
    Internet Speed
    still too embarrassed to tell
    Browser
    Firefox
    Antivirus
    Defender
    Other Info
    System 3 is non compliant Dell 9020 i7-4770/24gb ram Win11 PRO 26200.8457
I don't use Thunderbird anymore but I found this in my old notes...if it still works.

CHANGE FONT SIZE
tools-options-all way to bottom-config editor
in search box type 'devpixels'
right click on 'devpixelsperPX-modify
default value is -1.0
depending on screen size change this value to any value until you get size you want.
(ex: 1.0, 1.25, 1.5, etc) 1.5 is good on 27 in. screen)
Omg... my friend, I appreciate your help but I said in CSS.
 

My Computer

System One

  • OS
    11
    Computer type
    PC/Desktop
    Manufacturer/Model
    msi
Sorry about that. I missed that.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 25H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Optiplex 7080
    CPU
    i9-10900 10 core 20 threads
    Motherboard
    DELL 0J37VM
    Memory
    32 gb
    Graphics Card(s)
    none-Intel UHD Graphics 630
    Sound Card
    Integrated Realtek
    Monitor(s) Displays
    Benq 27
    Screen Resolution
    2560x1440
    Hard Drives
    2x1tb Solidigm m.2 nvme /External drives 512gb Samsung m.2 sata+2tb Kingston m2.nvme
    PSU
    500w
    Case
    MT
    Cooling
    Dell Premium
    Keyboard
    Logitech wired
    Mouse
    Logitech wireless
    Internet Speed
    so slow I'm too embarrassed to tell
    Browser
    #1 Edge #2 Firefox
    Antivirus
    Defender+MWB Premium
  • Operating System
    Windows 11 Pro 24H2 26200.8457
    Computer type
    PC/Desktop
    Manufacturer/Model
    Beelink Mini PC SER5
    CPU
    AMD Ryzen 7 6800U
    Memory
    32 gb
    Graphics card(s)
    integrated
    Sound Card
    integrated
    Monitor(s) Displays
    Benq 27
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Crucial nvme
    Keyboard
    Logitech wired
    Mouse
    Logitech wireless
    Internet Speed
    still too embarrassed to tell
    Browser
    Firefox
    Antivirus
    Defender
    Other Info
    System 3 is non compliant Dell 9020 i7-4770/24gb ram Win11 PRO 26200.8457

Change UI and Message Font Size in Thunderbird​

In this day and age – when we are ‘ease of access’ aware – you’d think that the good folk behind Thunderbird would make it easy to change the font size of the GUI and messages in Thunderbird email client.

Sadly, they don’t; you have to mess about with ‘about:config’ and ‘userChrome.css’ and ‘userContent.css’ files to get results. Worst of all, the official advice, to use css files, fails to point out the need for an ‘about:config’ tweak for those files to have any effect.

I spent hours trying how to find out how to help an elderly user with eyesight issues consistent with their age make Thunderbird easier to use, with none of the advice working; almost by accident, I came across the need for the necessary prior ‘about:config’ tweak.

So, to help others with this problem, here’s what to do!

Firstly, in Thunderbird GUI, choose Tools > Options > General, scroll down to the bottom and click on ‘Config Editor’. Enter toolkit.legacyUserProfileCustomizations.stylesheets in the search box, and toggle its value to ‘true’. (If the boolean value doesn’t exist, create it, as ‘true’).

Then, open your user profile folder (via Help > Troubleshooting Information > Profile Folder > Open Folder) and close Thunderbird. In your profile folder, create a folder called chrome, and in it create two plain text files, called userContent.css and userChrome.css.

In userChrome.css (which changes font sizes in the UI), put the line @namespace url("Mozilla XML Namespace"); at the top, then eg * {font-size: 16pt !important;} below (and/or any other standard line of CSS as required);

in userContent.css (which changes the font size in messages) put @namespace url(http://www.w3.org/1999/xhtml); at the top, and then eg * {font-size: 18pt !important;} below (and/or any other standard line of CSS as required).

Restart Thunderbird, and your customisations should be applied.

from this link

best of luck Steve ..
 

My Computers

System One System Two

  • OS
    Windows 11 Home
    Computer type
    PC/Desktop
    Manufacturer/Model
    HP 24" AiO
    CPU
    Ryzen 7 5825u
    Motherboard
    HP
    Memory
    64GB DDR4 3200
    Graphics Card(s)
    Ryzen 7 5825u
    Sound Card
    RealTek
    Monitor(s) Displays
    24" HP AiO
    Screen Resolution
    1920 x 1080 @60 Hz
    Hard Drives
    1TB WD Blue SN580 M2 SSD Partitioned.
    2x 1TB USB HDD External Backup/Storage.
    PSU
    90W external power brick
    Case
    24" All in One
    Cooling
    Default Air Cooling
    Keyboard
    HP WiFi UK extended
    Mouse
    HP WiFi 3 Button
    Internet Speed
    1GB full fibre
    Browser
    Edge & Firefox
    Antivirus
    AVG Internet Security/Windows Defender
    Other Info
    Mainly Open Source Software
  • Operating System
    Ubuntu 22.04.5 LTS
    Computer type
    Laptop
    Manufacturer/Model
    Dell 13" Latitude 2017
    CPU
    i5 7200u
    Motherboard
    Dell
    Memory
    16GB DDR4
    Graphics card(s)
    Intel
    Sound Card
    Intel
    Monitor(s) Displays
    13" Dell Laptop
    Hard Drives
    250GB Crucial 2.5" SSD
    Mouse
    Generic WiFi 3 button
    Internet Speed
    WiFi only
    Browser
    Firefox
    Antivirus
    ClamAV TK
    Other Info
    Mainly Open Source Software

My Computer

System One

  • OS
    11
    Computer type
    PC/Desktop
    Manufacturer/Model
    msi

My Computers

System One System Two

  • OS
    Windows 11 (up to date)
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom
    CPU
    Intel i5 12400
    Motherboard
    Gigabyte Z690 UA
    Memory
    Corsair Vengeance LPX 16GB
    Graphics Card(s)
    On Board the Z690
    Sound Card
    On Board
    Monitor(s) Displays
    43" Samsung tu7000
    Screen Resolution
    2560 x 1440
    Hard Drives
    SAMSUNG SSD 1TB NVMe M.2
    PSU
    Thermaltake smart 500w 80+
    Case
    LIAN LANCOOL_205M
    Cooling
    Bunch of fans . . . :o) (lights dont work)
    Keyboard
    Unicomp: Ultra Classic White Buckling Spring USB
    Mouse
    M510
    Internet Speed
    50mbps on Ethernet
    Browser
    Fire Fox
    Antivirus
    Windows
    Other Info
    Love this computer but I still prefer Win-7 like I love my old Lazy Boy Recliner . . . it just feels better.
  • Operating System
    WIN-7-64BIT and Win-11 pro for testing on unsupported hardware
    Computer type
    PC/Desktop
    Manufacturer/Model
    Home built
    CPU
    i5-3570K CPU @ 3.40GHz, 3801 Mhz, 4 Core(s), 4 Logical Processor(s)
    Motherboard
    GA-Z77-HD3
    Memory
    16 GB - Crucial Ballistick 4GB PC3-14900 DDR3-1333 MHz
    Graphics card(s)
    NVIDIA GeForce GTX 1050
    Sound Card
    On Board
    Monitor(s) Displays
    ASUS VP278
    Screen Resolution
    1920 x 1080
    Hard Drives
    4 - internal Samsung 2.5" SSD, 1 WD HDD 7200 and some external drives
    PSU
    EVGA 550w
    Case
    Old Gygabyte Tower
    Cooling
    Yes
    Keyboard
    Unicomp - UNIOP4A USB (like the old IBM Model H that I started with)
    Mouse
    M510
    Internet Speed
    50mbps
    Browser
    Firefox
    Antivirus
    Windows
    Other Info
    The only thing it lack is USB-3.2 on the front face but it has 3.0 on the back
Did you try an AI search? I got what looked like a good answer but I dont know anything about CSS code so I cannot tell

Google AI results
Yeah so i tried google AI too and the codes it provided didnt work at all. I also tried codes from gpt and same rubbish. Its crazy
 

My Computer

System One

  • OS
    11
    Computer type
    PC/Desktop
    Manufacturer/Model
    msi
For CSS to only affect how text in the Message in the Compose Editor is displayed at your end (and not at the Receiver's end) try somethig like this:

userContent.css (place this file in the same folder where userChrome.css is).
Code:
/* userContent.css */
@-moz-document url("about:blank?compose") {
  body {
       font-size: 8px  !important;     /* alter as required */
       }  
}

or:

Code:
/* userContent.css */
@-moz-document url("about:blank?compose") {
  body {
       font-size: smaller  !important;
       }  
}

Anyway, to target the Compose Editor, a userContent.css and not userChrome.css with the selector called @-moz-document url("about:blank?compose") appears to work for some of the properties of the Message Editor, although I don't know how well it works in practice considering that some of the properties can also be changed within the Compose Window itself when using html style.

pn: If you use a signature, you may need to delete the blank line at the top of your composition, and add it back with just an Enter key.
 

My Computer

System One

  • OS
    Win 11 25H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    custom
    CPU
    intel i7-8700
    Motherboard
    Asus Z370 TUF Gaming
    Memory
    32Gb
    Graphics Card(s)
    Intel iGPU
    Sound Card
    Realtek
    Hard Drives
    Samsung
    PSU
    Corsair
    Cooling
    Fans
For CSS to only affect how text in the Message in the Compose Editor is displayed at your end (and not at the Receiver's end) try somethig like this:

userContent.css (place this file in the same folder where userChrome.css is).
Code:
/* userContent.css */
@-moz-document url("about:blank?compose") {
  body {
       font-size: 8px  !important;     /* alter as required */
       }
}

So I used this code but it doesn't work. But whats interesting is that before I started typing, the blinking cursor was large. But when I started typing, the font size stayed the same as usual. What do you suggest?
 

My Computer

System One

  • OS
    11
    Computer type
    PC/Desktop
    Manufacturer/Model
    msi
Also worth trying:
userContent.css
Code:
@-moz-document url("about:blank?compose") {
  * {
       background-color: red  !important;
       font-size: 4px  !important;
       }
}

If it works, remove the background-color line, and change the font-size as required.

eg: "testing" using: Settings > Composition > Font set to "Huge" , Style "html" , and the userContent.css shown above.
Test message.webp
 
Last edited:

My Computer

System One

  • OS
    Win 11 25H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    custom
    CPU
    intel i7-8700
    Motherboard
    Asus Z370 TUF Gaming
    Memory
    32Gb
    Graphics Card(s)
    Intel iGPU
    Sound Card
    Realtek
    Hard Drives
    Samsung
    PSU
    Corsair
    Cooling
    Fans
Back
Top Bottom