Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 153 Stack Exchange communities.

What is meta?
Here's how it works:
  1. Any Stack Exchange user can ask a question
  2. The community provides support, votes on ideas, and reports bugs
  3. Your voice helps shape the way Stack Exchange operates

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?

share|improve this question

migrated from stackoverflow.com Jan 19 '10 at 2:53

This question came from our site for professional and enthusiast programmers.

See Super User:

share|improve this answer
    
Careful, Arjan, you are currently implying that there would be useful information on SU? That would be shocking! – Gnoupi Jan 19 '10 at 8:46
2  
@Gnoupi, you know how all the questions that are too difficult for SO are delegated to SU. ;-) – Arjan Jan 19 '10 at 9:51
code {
  background-color:#EEEEEE;
  font-family:Consolas,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New;
}
share|improve this answer
1  
No monospace? I am disappoint. – Ignacio Vazquez-Abrams Jan 19 '10 at 2:48
    
Edited and fixed ;) – schnaader Jan 19 '10 at 2:48
1  
@Ignacio: There's a reason monospace isn't used, and that reason is WebKit, which renders it differently than all other browsers. – John Rudy Jan 19 '10 at 14:40

It's the first font in the following list that is installed on your system:

  • Consolas
  • Monaco
  • Lucida Console
  • Liberation Mono
  • DejaVu Sans Mono
  • Bitstream Vera Sans Mono
  • Courier New

For more information, look at the CSS file in Firebug.

share|improve this answer
3  
+1 It's good to make the point that it depends on what fonts are installed in the client. – pavium Jan 19 '10 at 4:53
    
and the browser defined ones... – JuanManuel LF Jul 9 '12 at 16:34

You must log in to answer this question.