• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 266
  • Last Modified:

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

0
genesisvh
Asked:
genesisvh
1 Solution
 
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
 
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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
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
 
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
 
genesisvhAuthor Commented:
Excellent
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now