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

How to change Text Color?

Status
Not open for further replies.

KennyRohan

Technical User
Apr 21, 2003
133
0
0
US
At the bottom of my webpage, I notice when I turn text into a hyperlink (i.e., info@marketing.com), the text turns a LIGHT BLUE. I had specified color="#FFFFFF", which is WHITE but it stills comes out light blue. Is there any way around this? Thank you.
 
Learn css. Messing about with font tags and 'color="#FFFFFF"' is a tad outdated.

The traditional way of specifying link colours was to include it in the body tag:
[tt][blue]<body alink="#FFFFFF" vlink="#FFCCAA">[/blue][/tt]
[tt][blue]alink[/blue][/tt] for links, [tt][blue]vlink[/blue][/tt] for visited links.

Now we simply use css:
Code:
a {
  color: #fff;
}
a:visited {
  colour: #fca;
}

You can include it in the same page this way:
Code:
<head>
  <title>foo</title>

  <style type="text/css">
    a {
      color: #fff;
    }
    a:visited {
      colour: #fca;
    }
  </style>
</head>
or in a seperate file using a link tag:
Code:
<head>
  <title>foo</title>

  <link rel="stylesheet" type="text/css" href="/styles.css" />
</head>

---
Marcus
better questions get better answers - faq581-3339
accessible web design - zioncore.com
 
You will find this the case with all links on your page i'm affriad, the default colour it light Blue, Add the following code to the top of your site inbetween the </head> tag and the <body> tag.

Code:
<style>
a {color: #FFFFFF;}
</style>

That will change all the links on your site to #FFFFFF.

Rob
 
>>lol .. pipped me to the post manarth!
as an added bonus, I gave the correct answer!
Add the following code to the top of your site inbetween the </head> tag and the <body> tag.
This sounds like you mean:
Code:
</head>

<style>
 [gray]/* styles here */[/gray]
</style>

<body>
This is not valid code...<style> tags belong in the head: i.e. between <head> and </head>.

---
Marcus
better questions get better answers - faq581-3339
accessible web design - zioncore.com
 
lol ... *stands corrected*

There is lesson to be learned here kids ... don't code your CSS if you've been on the wine!

Rob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top