1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
2
<TITLE>INPUT size test</TITLE>
4
<P>All of the following <code>INPUT</code> fields have a <code>size</code> of 14:</P>
8
<strong>1)</strong> Browser default font:<BR>
9
<INPUT TYPE=TEXT SIZE=14 value="12345678901234567890">
12
<strong>2)</strong> Times New Roman (default in M7 Apprunner/Windows) or other serif font:<BR>
13
<INPUT TYPE=TEXT SIZE=14 value="12345678901234567890" STYLE="font-family: 'Times New Roman', serif;">
16
<strong>3)</strong> MS Sans Serif (default in IE4.x/Windows) or other sans-serif font:<BR>
17
<INPUT TYPE=TEXT SIZE=14 value="12345678901234567890" STYLE="font-family: 'MS Sans Serif', sans-serif;">
20
<strong>4)</strong> Arial or other sans-serif font:<BR>
21
<INPUT TYPE=TEXT SIZE=14 value="12345678901234567890" STYLE="font-family: Arial, sans-serif;">
24
<strong>5)</strong> Monospace font (default in Navigator 4.x):<br>
25
<INPUT TYPE=TEXT SIZE=14 value="12345678901234567890" STYLE="font-family: monospace;">
30
Since the <code>INPUT</code> field in test 5 is using monospace font, it should fit exactly 14 characters (eg. the visible string should be "12345678901234", no more, no less).
33
However, when an <code>INPUT</code> field uses a proportional font - as tests 2-4 do - the specified number of visible characters is always an <em>average</em>, not an accurate value. Try filling the field with lowercase 'l' letters or uppercase 'W':s to get the point.
38
<ADDRESS>Antti.Nayha@oulu.fi</ADDRESS>
b'\\ No newline at end of file'