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???
Announcement
Collapse
No announcement yet.
force <pre> to not change font style
Collapse
X
-
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