/**
* 1. Correct the inheritance and scaling of font size in all browsers.
* 2. Correct the odd `em` font sizing in all browsers.
*/
code,
kbd,
pre,
samp {
font-family: monospace, monospace; /* 1 */
font-size: 1em; /* 2 */
}
two monospace
The duplication of monospace is intentional.
https://github.com/necolas/normalize.css#pre-code-kbd-samp
@marvin1023, thanks for looking at the code. It鈥檚 almost a tradition for certain developers to ask about this. Don鈥檛 feel too bad; and take this opportunity to look over our documentation. This gets asked every so often. The duplication of monospace is intentional, and fixes font sizing on pre-formatted text.
Most helpful comment
@marvin1023, thanks for looking at the code. It鈥檚 almost a tradition for certain developers to ask about this. Don鈥檛 feel too bad; and take this opportunity to look over our documentation. This gets asked every so often. The duplication of
monospaceis intentional, and fixes font sizing on pre-formatted text.