I quite like the look of the font used in the code blocks that appear on Stack Overflow.
What, dear listener, is the font face used for such?
It's the first font in the following list that is installed on your system:
For more information, look at the CSS file in Firebug.
code {
background-color:#EEEEEE;
font-family:Consolas,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New;
}
monospace
? I am disappoint.
monospace
isn't used, and that reason is WebKit, which renders it differently than all other browsers.
Commented
Jan 19, 2010 at 14:40
StackExchange recently changed their code font. The font stack is now different per operating system.
ui-monospace, // San Francisco Mono on macOS and iOS
"Cascadia Mono", "Segoe UI Mono", // Newer Windows monospace fonts that
// are optionally installed. Most likely
// to be rendered in Consolas
"Liberation Mono", // Recently updated
Menlo, Monaco, Consolas, // A few sensible system font choices
monospace // The final fallback for rendering in monospace.
See this meta post for more details.
See Super User: