Opened 11 years ago
Closed 11 years ago
#1793 closed enhancement (fixed)
Fix display issues with monspace fonts
Reported by: | Nicklas Nordborg | Owned by: | everyone |
---|---|---|---|
Priority: | trivial | Milestone: | BASE 3.3 |
Component: | web | Version: | |
Keywords: | Cc: |
Description
Firefox and IE handle monospace fonts differently. The default settings in Firefox are to display monospace fonts in a smaller size, but IE uses the same size overall. The default settings in Firefox can easily be changed in the "Options" dialog ("Content" tab, then "Advanced" button). Set the default monospace font to the same size as the default proportional font size.
It would be nice if BASE could display monospace fonts in a larger font size in Firefox without affecting IE and without depending on users changing the default values. There seems to be a "trick" to fool Firefox to not use the monospace default setting. The trick is to specify more than one font in the CSS for an element:
pre { font-family: monospace,Courier New; }
As far as I can tell it doesn't matter what the second font is, but Courier New is the typical default monospace font on many systems.
(In [6378]) Fixes #1793: Fix display issues with monspace fonts
Added the 'trick' to main stylesheet for all <textarea>, <pre> and <code> tags.
Also found a few other places that used 'monospace' directly on the page.