Posted by Chris Ramsay on 03/18/05 12:17
Babu,
> but it doe not work can you pls tell me.
for example you can define 'red' as a css class either in the head of
your document output (within <style> tags) or as an external linked
..css document. 'red' is defined so:
..red {
color:#FF0000;
}
Then your option html is like:
echo "<option class=\"red\">$item</option>";
The advantage of using classes is of course that you can make a change
globally rather than having to rewrite N instances of inline code.
Cheers
CHris
p.s. can you please send plaintext mails to the list, not html ;)
[Back to original message]
|