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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 ;)

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux