What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 137 Stack Exchange communities.

which font is used on stackoverflow for code snippets?


var $div = $("#preloader");
$.each($.imgNames, function (i, val) {
    $("<img />").attr("src", $.largePath + val).addClass('PRELOADED').appendTo($div);
share|improve this question
duplicate -> meta.stackexchange.com/q/36176/234058 –  Nishad Sep 13 '13 at 9:20

1 Answer 1

up vote 9 down vote accepted

It depends what fonts are available on your system, but the list (in order of priority) is:

Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, serif

You can see this by inspecting one of the pre or code elements that contain formatted code (screenshot from Chrome's DOM inspector):

enter image description here

For more information on how that CSS behaves, you could look at the CSS Fonts module specification.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .