I'd agree with the removal of size='-1'. That's basically telling the browser that you'd like the font to be one size smaller than what the user prefers.

Most browsers (at least, those that display in a GUI) specifically have an option for defining two default fonts -- that of 'normal' text, and that of 'fixed-width' text (which gets shown for <tt><pre> and the like.)

I'd suggest that anyone who views code in a web browser set their fixed width font to whatever they use in their text editor for coding, or command line terminal, or however else they're used to interacting with code.

I personally prefer ProFont (although, I like the classic, to the updated version. There's also Sheldon (available from the ProFont page), Anonymous, and I'm guessing plenty of other fonts with a similar purpose.


In reply to Re^2: revise font? by jhourcle
in thread revise font? by ww

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.