🔤Monospace Font
Also known as Monospaced Font, Fixed-Width Font, Monospace
A font where every letter takes the same width. Used for code.
Think of it like
It is like eggs in a carton. Every letter gets the same size cup.
Example
Jack's code editor shows code in a monospace font. His lines of numbers stay in neat columns.
Why it matters
Fixed widths make code, tables and data easy to scan in straight columns.
Definition
Example code
css
code {
font-family: ui-monospace, Menlo, Consolas, monospace;
}Common mistake
Key takeaways
- 1Same width. An i is as wide as an m.
- 2Columns line up. Great for code and data.
- 3Not for long text. Uneven gaps slow reading.