Wednesday, December 08, 2004

Monospaced font for GMail

At last, I can enjoy using gmail with proper fonts: monospaced, for reading and composing emails. Just create userContent.css containing

div.msg div.mb {

font-family: monospace !important;
font-size: 12px !important;
}

.cm {
font-family: monospace !important;
font-size: 12px !important;
}

.tb {
font-family: monospace !important;
font-size: 12px !important;
}

I'm sure you can do better than me, because this is only my second attempt to tweak CSS. My first one was to change template of this blog to use red-over-white color for this blog's title.

Happy GMail-ing! ...

note #1: I forgot to write that this tweak is tested on Firefox, thanks for Budi Rahardjo whom I got initial info about possibility of using monospaced font on reading GMail posting. My additional tweak was for using monospaced font on posting new email.

note #2: Use chromedit as suggested here to do this tweak more easily.

2 comments:

Anonymous said...

You can even combine those css rules into one single rule:

div.msg div.mb, .cm, .tb {
font-family: monospace !important;
font-size: 12px !important;
}

-- Milo

Anonymous said...

Excellent idea!

I made it work with Safari on MacOSX by creating a css file with this content (it could go anywhere, I put it in ~/Libary/Safari/MyPrefs.css) and selecting it from the Advanced Preferences Pane.

-- Michael