Web Analytics Made Easy -
StatCounter force <pre> to not change font style - CodingForum

Announcement

Collapse
No announcement yet.

force <pre> to not change font style

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • force <pre> to not change font style

    When I use <pre> the font style changes from what would normally be used. Is there a way to tell <pre> to use the same font style as the rest of the page???
    Wayne Christian

  • #2
    Yes, style it with a style sheet (tested using Mozilla).

    Code:
    <style type="text/css">
    pre { font-family: inherit; }
    </style>

    Of course IE ignores that code so for compatability you'll have to specify the same font-family as the rest of the page instead of using the simple "inherit" construct.
    Check out the Forum Search. It's the short path to getting great results from this forum.

    Comment


    • #3
      Thanx Roy.
      Currently, I don't specify the font family. I let the user set things via the browser preferences. But if that's the only way (cause right now I am using IE6) then I'll do that... Thanx again
      Wayne Christian

      Comment

      Working...
      X