I'd like to display a list of font options so that each option gives an example of the font, the way MS Word does - the "Times New Roman" option appears in Times New Roman, the "Tahoma" option appears in Tahoma, etc.
Accordng to my manuals, the OPTION tag allows inline styles. So I coded:
<select name="selFont" size=1>
<option style="font-family: 'Times New Roman'" value="Times New Roman">Times New Roman
<option style="font-family: 'Helvetica'" value="Helvetica" selected>Helvetica
<option style="font-family: 'Tahoma'" value="Tahoma">Tahoma
<option style="font-family: 'Arial'" value="Arial">Arial
etc.
</select>
But this has no effect in IE 5 or Netscape 4 - the options appear in the browsers' default fonts.
Have I done something wrong, or do the big 2 browsers not support this use of styles yet?
Accordng to my manuals, the OPTION tag allows inline styles. So I coded:
<select name="selFont" size=1>
<option style="font-family: 'Times New Roman'" value="Times New Roman">Times New Roman
<option style="font-family: 'Helvetica'" value="Helvetica" selected>Helvetica
<option style="font-family: 'Tahoma'" value="Tahoma">Tahoma
<option style="font-family: 'Arial'" value="Arial">Arial
etc.
</select>
But this has no effect in IE 5 or Netscape 4 - the options appear in the browsers' default fonts.
Have I done something wrong, or do the big 2 browsers not support this use of styles yet?