I'd like to tell the browser to use a font that is both monospace and sans-serif (usually the default monospace font has serifs, and the default sans-serif font isnt monospaced). Is there any way to specify this in CSS other than to provide a list of fonts I know to fit my criteria?
Courier New is the most widely used monospace serif font. Courier New is often used with coding displays, and many email providers use it as their default font. Courier New is also the standard font for movie screenplays.
Font Families: Serif, Sans-serif, and others In CSS (and in typography in general) there are five basic types, or families, of fonts: serif, sans serif, cursive, fantasy, and monospace.
CSS's font-family
doesn't allow specifying more than one generic font keyword in a single font family name, so you'll either have to go with monospace
or sans-serif
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With