Artisan72 Artisan72 - 8 months ago 24
CSS Question

"font-family: monospace, monospace"

I'm just curious, in

, the monospace font rules contain

font-family: monospace, monospace;

Is there a difference to

font-family: monospace;

? There must be a reason for using that. Maybe it's a workaround for the behaviour of some browsers?


You are right. The font-family: monospace, monospace; declaration is a simple hack/workaround for some browsers which tend to reduce the font size of monospace fonts.

More info on this Github issue: