CSS link colour not changing.
<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 posted this at 14:37 — 24th September 2009.
She has: 11,421 posts
Joined: Jun 1999
Is it being overridden by another CSS rule? Did you check in Firebug?
davecoventry posted this at 15:10 — 24th September 2009.
He has: 112 posts
Joined: Jun 2009
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.
naumjames12 posted this at 07:24 — 10th October 2009.
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 posted this at 15:15 — 24th September 2009.
He has: 112 posts
Joined: Jun 2009
Sorry: It IS actually working now. I cleared the cache and I'm in business.
webwiz posted this at 22:40 — 26th September 2009.
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.