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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CSS can't force font colour

Status
Not open for further replies.

Huitzilopochtli

Programmer
Feb 18, 2002
81
0
0
DE
Hello

I am trying to get CSS to force a font colour, but it doesn't seem to work.

I have a Web page with a couple of links in it. Behind the page, I have some CSS code:

<style>
A{text-decoration:none;font-color:&quot;navy&quot;}
</style>

This does remove the underlined link, but it won't change the font colour. I also have the following code (on the same page) to emphasise that I want the text colour in navy and while the <b> tag works, again I can't seem to change the font colour.

The page is at:


Many thanks for any help.
 
Try this in your style
a{text-decoration:none;color:navy;}

hope this helps

dis
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top