W3C home > Mailing lists > Public > www-html@w3.org > May 2000

Re: SELECT OPTION how to control the fonts..?

From: Bertilo Wennergren <bertilow@hem.passagen.se>
Date: Mon, 1 May 2000 13:35:28 +0200
Message-ID: <012e01bfb363$07e14040$57fd96c1@chello.se>
To: "Cheun N Chong" <cnc99r@ecs.soton.ac.uk>, <www-html@w3.org>
"Cheun N Chong":

> I have the following HTML codes:

> <tr><td align=center>
> <form name="scrollform">
> <select name="scroller" size=4>
> <option>
> [...]
> <option>Service->Church
> </select>
> </form>
> </td></tr>

> I have tried many ways to control the fonts at the OPTION tag
> like i want to make 23-4-2000 red in color..
> however not works

You could e.g. put the following into the head section of you html:

  <style type="text/css">
    input, select, option { color: red; }
  </style>

#####################################################################
                         Bertilo Wennergren
                 <http://purl.oclc.org/net/bertilo>
                     <bertilow@hem.passagen.se>
#####################################################################
Received on Monday, 1 May 2000 07:44:17 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:43 GMT