Color qustion

How do I make the result appear in a different color other than #000, let's say blue.
echo "<td bgcolor='#FFFFFF' style='color: #000' align='center'> Borough: ".$result['county']."<br /></td>";

Open in new window

genesisvhAsked:
Who is Participating?
 
Greg AlexanderLead DeveloperCommented:
echo "<td bgcolor='#FFFFFF' style='color: #000' align='center'> Borough: <span style='color:#00F'>".$result['county']."</span><br /></td>";

Open in new window

0
 
scifo_dkCommented:
You simply change the color tag from #000 to something else.

Heres a link to a color generator so you can see what color you want:
http://www.colorschemer.com/online.html

Blue by the way is: #0000FF

//Scifo_dk
0
 
Greg AlexanderLead DeveloperCommented:
Have you tried:
echo "<td bgcolor='#FFFFFF' style='color:blue' align='center'> Borough: ".$result['county']."<br /></td>";

Open in new window

0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
philip-crossCommented:
Little bit confused as to what you mean, but you could use the following:
echo "<td style="background-color: #ffffff;" align="center"><span style="color: #1c86ee;">Borough: ' . $result['county'] . '</span><br /></td>'; 

Open in new window


Try using span tags to wrap text in, and edit the CSS within the style attribute of the span.
0
 
genesisvhAuthor Commented:
No I think I didn't explain myself that well. #000 is for Borough but the result i would like to appear in blue. Sorry Thanks.
0
 
genesisvhAuthor Commented:
Excellent
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.