Click to See Complete Forum and Search --> : external CSS document problem


hopeful
11-27-2006, 04:26 PM
This is the contents of my external CSS document. Saved as style.css

#linkfooter
{
a:link
{
color: blue;
}
a:visted
{
color: red;
}
}


This is the code connecting the document to my page

<link rel="stylesheet" type="text/csshref="style.css">

And this is where I am trying to use it:


<div id="linkfooter">
<a href="index.html">PHP/</a> &nbsp;|&nbsp;
<a href="eyeos">eyeos</a> &nbsp;|&nbsp;
<a href="Wordpress">Blog</a> &nbsp;|&nbsp;

<a href="phpbb2">Forum</a>
<br /><br /><span> &copy; 2006 Trey Montgomery</span>
</div>

I am not sure what is wrong but it is noting doing as I want (which is to change the color of the link and visited link.

Can someone help me out?

Thanks

Kravvitz
11-27-2006, 05:10 PM
You can't nest normal rules like that.

I suggest you learn how selectors work. This page explains how to do what you want to do. (http://www.htmldog.com/guides/cssintermediate/grouping/)