Forum Moderators: not2easy

Message Too Old, No Replies

link colors

where the problem is? my colors don't work

         

Vyacheslav Burorichn

8:12 am on Sep 16, 2005 (gmt 0)

10+ Year Member



hi guys, i'm new here, so can somebody help me?
here are some pseudoclasses :
-------------
a.menu
{
font-family: Tahoma,Arial;
font-size: 11px;
color: #666666;
font-weight: bolder;
text-decoration: none;
}
a.menu:visited
{
color: red;;
}
a.menu:active
{
color: #000000;
}

a.menu2
{
font-family: Arial;
font-size: 11px;
color: #4a5a8d;
font-weight: bolder;
text-decoration: none;
}
a.menu2:visited
{
color: #43196F;!important;
}
a.menu2:active
{
color: #000000;
}
-----------------
and on my web-page I have diff lincs like:

<html>
<a href="#" class="menu">my 1st beautiful link</a>

<a href="#" class="menu2">my 2st beautiful link</a>

</html>

Ok, as I see on my page , the result is:
-active works ->black color appears
-vsited works -> red color appears

but after some clicks and now - all the time - my "links" have no colors , defined on

a.menu2 and a.menu .. the have just a color of VISITED.
What's wrong?

Vyacheslav Burorichn

9:35 am on Sep 16, 2005 (gmt 0)

10+ Year Member



hey,hey!
i've found that I pasted the @!important@ rule to the wrong place.
Can somebody tell me, where and how should I paste this rule?

benihana

9:39 am on Sep 16, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



color: #43196F;!important;

should be:

color:#43196F !important;

welcome to WebmasterWorld! :)

Vyacheslav Burorichn

9:56 am on Sep 16, 2005 (gmt 0)

10+ Year Member



Ok, thanks for that.
But now I see my link-colors but other colors (like my "visited" and "active") don't work!

Here is some trouble, I think :)

Vyacheslav Burorichn

11:31 am on Sep 16, 2005 (gmt 0)

10+ Year Member



i've found a mistake, I used "#" src-s as default. but do you know some specia ways how to refresh a page definetely?
f5 and ctrl+f5 refresh, but visited links are still there...