Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Color

Status
Not open for further replies.

billwatson

Instructor
Dec 18, 2002
2,312
CA
this is probably oh so easy but as only an occassional php coder its got me pulling my hair out

i just want the returned data to have a bit of color

$news .= "<b>$news_title</b><br>$news_desc<br><font color =\#ff0000\><u><a href=\"$news_uri\" target=\"_new\">$news_uri</a></u></font><br><br>";

the above works fine if i remove the <font> tags but i would like the links to be a different color and not just underlined

can somone please point out my error as ive attempted all kinds of combinations without joy

 
This has nothing to do with PHP (or very little).

You want to use CSS to define styles for address tags.

Ken
 
problem is i am sending the data back to flash so css just isnt an option

is there a way to format the text color with php....bold and underline work fine
 
You didn't mention flash in your first post...

You could try in line styles:
Code:
<a style="color:orange;font-weight:bold;text-decoration:underline" href ...>text</a>

Ken
 
thanks for your help but i finally googled the answer..i was very close with a number of my best guesses...solution

$news .= "<font color=\"#66ccff\"><b>$news_title</b></font><br>$news_desc<br><a href=\"$news_uri\" target=\"_new\"><font color=\"#ffffcc\"><u>$news_uri</a></u></font><br><br>";
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top