CSS link colour not changing.

davecoventry's picture

He has: 112 posts

Joined: Jun 2009

<td colspan="5" class="container">
  <div class="forum-details">
    <div class="name">
      <a href="/forum/1">General</a>
    </div>
    <div class="description">General Forums
    </div>
  </div>
</td>

Why is this not workng?

.container a:link{
color: #ff0;
}

Anyone see what I'm doing wrong?

Megan's picture

She has: 11,421 posts

Joined: Jun 1999

Is it being overridden by another CSS rule? Did you check in Firebug?

davecoventry's picture

He has: 112 posts

Joined: Jun 2009

Megan wrote:
Is it being overridden by another CSS rule? Did you check in Firebug?

Firebug says:

body, caption, th, td, input, textarea, select, option, legend, fieldset (line 1){
  font-family: Tahoma,Verdana,Arial,Helvetica,"Bitstream Vera Sans",sans-serif;
}

#forum td.container (line 1){
  padding-top: 5px;
}

#forum td.container (line 1){
  border-top-width: 0pt;
  border-top-style: none;
  border-top-color: -moz-use-text-color;
  margin-top: 0pt;
  padding-left: 15px;
  padding-top: 5px;
}

#forum td.container (line 1){
  background-color: #6e320e;
  border-bottom-width: medium;
  border-bottom-style: none;
  border-bottom-color: -moz-use-text-color;
}

I've changed the Selector to

#forum td.container a:link{
        color: #ff0;
}

Still not working. Sad

They have: 1 posts

Joined: Oct 2009

Same error came up wen I was making my website...But I tried 2 3 times again and it disappeared.

davecoventry's picture

He has: 112 posts

Joined: Jun 2009

Sorry: It IS actually working now. I cleared the cache and I'm in business.

He has: 629 posts

Joined: May 2007

Yes. You gave a colour to unvisited links (a:link) but not visited ones, so clearing the cache made the visited links not visited. (I hope this makes sense...)

Cordially, David
--
delete from internet where user_agent="MSIE" and version < 8;

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.