Re: change the font color of a string variable in PHP

From: Date: Fri, 18 Mar 2005 10:17:41 +0000
Subject: Re: change the font color of a string variable in PHP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-211029@lists.php.net to get a copy of this message
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 ;)

« previous php.general (#211029) next »