About 182,000 results
Open links in new tab
  1. css - "font-family: monospace, monospace" - Stack Overflow

    Aug 5, 2016 · In normalize.css, the monospace font rules contain font-family: monospace, monospace; Is this different to font-family: monospace; ? There must be a reason for using …

  2. Force Non-Monospace Font into Fixed Width Using CSS

    Apr 14, 2012 · Is there any way to force a font to be monospaced using CSS? By this I mean, using a non-monospace font, can you force the browser to render each character at a fixed …

  3. Set monospace font for all elements that use monospace fonts in …

    Jul 4, 2023 · 6 Using the body selector in the CSS code above, we first made "Noto Sans" the default font for the entire page's body. Then, to target every element that needs a monospace …

  4. Forcing HTML textarea to use a monospace font using CSS

    Oct 24, 2017 · To avoid most of the problems with browsers doing inexplicable things, you can use font-family: monospace,monospace;.

  5. css - Which monospace font does a browser use? - Stack Overflow

    May 3, 2013 · 36 With CSS, if you specify font-family: monospace;, my understanding is that the browser chooses its default/preferred monospaced font. If that's correct, how can you …

  6. How to imitate a monospace font with a variable-width font?

    Sep 20, 2022 · TL;DR: you can't emulate monospace fonts but you can get tabular (monospaced) numbers if supported via CSS In the long run: it is much easier/efficient to opt for a proper …

  7. css - Display monospace fonts at the same font size as their ...

    Nov 15, 2019 · Just em won't work because em is "font size of the current element" (so if your element's font-family is monospace, em will change to the smaller monospace font-size …

  8. css - How to display special unicode characters using monospace …

    Feb 19, 2012 · Being monospace means just that within the font, all characters have the same advance width. So you would need to use a single font that contains all the characters you …

  9. css - What are cross-browser, cross platfom web safe fonts?

    Jan 25, 2010 · How to make cross browser, cross platform and all devices compatible css font stack?

  10. In CSS: how to specify the font you want as being BOTH …

    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.