Reply to Re: [PHP] change the font color of a string variable in PHP

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация