Previous Message
Next Message

IE vs FF Textarea Font Size Inconsistent

Sent by Bruno Fassino on 9 February 2008 08:08


Felix Miata wrote:
[...]
> You can also see that IE is using 10pt Courier New in its
> internal stylesheet for PRE, CODE, TT, SAMP & TEXTAREA

What has probably not been mentioned yet, is that this IE behavior (i.e.
those elements having a smaller default size) can simply be overridden
specifying percentage size. I mean that:
 <code>abc...</code>
uses 10pt as you say, but
 <code style="font-size:100%">abc...</code>
uses the classic 12pt, and any
 <code style="font-size:x%">abc...</code>
uses 12pt as reference for the computation of x%.

On the other hand, the FF default size for monospace (the usual 13px in
Windows) is carried over when such percentages are applied (at least under
some circumstances). This is inevitably going to produce fonts smaller than
IE.


--
Bruno Fassino http://www.brunildo.org/test

______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread: