Link to home
Start Free TrialLog in
Avatar of blue-genie
blue-genieFlag for South Africa

asked on

CSS oddity

Hi all.

my CSS which i'm linking to


a:link {
      font-weight: bold;
      text-decoration: none;
      color: #CCCCCC;
      }
a:visited {
      font-weight: bold;
      text-decoration: none;
      color: #FFAF11;
      }
a:hover, a:active {
      text-decoration: underline;
      color: #FFAF11;
}

problem is, whenever I preview the page (F12) or if i open the html page, the link takes on the visited color, even when refreshing and reloading.

what's up with that?

thanks
blu.
Avatar of grogman
grogman

I know this may sound INCREDIBLY obvious, but have you cleared your browser's cache? This same type of problem drove me nuts for hours one day until I remembered to clear the cache.
Avatar of blue-genie

ASKER

yup, first thing i did.
ASKER CERTIFIED SOLUTION
Avatar of grogman
grogman

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You might try clearing your cache and history, then closing the browser. Reopen and view. That sometimes works for me.
i have cleared everything possible.
Try removing this:  a:active

I think what you're seeing is the active part of the link. If the link is active, you will see that color which is the same as your visited link. Remove the coma after hover too.

nope, that didn't do anything.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
And this works too. I guess you just needed another enter in between the lines. Let me know if this didn't work for you.

a:link {
     font-weight: bold;
     text-decoration: none;
     color: #CCCCCC;
     }
      
a:visited {
     font-weight: bold;
     text-decoration: none;
     color: #FFAF11;
     }
      
a:hover, a:active {
     text-decoration: underline;
     color: #FFAF11;
}
hi, its not that i'm not interested, just none of the suggested solutions above did the trick.....

And we are not mindreaderds.

When a solution does not work for you, you must tell this to the experts.:)
i humbly apologise. It slipped my mind.
please please please forgive me.
No problem:) Just keep this in mind next time.
if i could keep it in mind I wouldn't forget :-)

but i get ur pt.
can we close the question and get a refund?
Let's see what the experts will say.
But you can always ask Community Support to do this.
Just post a question here: https://www.experts-exchange.com/Community_Support/ and do not forget to post the link to this question :)

Did you try putting another return after the close bracket? It worked for me.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
blue-genie,
Any chance to answer to the experts?
in terms of prifre comments, it's not a catching issue.
on firefox, same thing, thats the only other browser i have access to.

i checked the multiple definitions. nothing.
its' never happened again, i'm going to close this post - and write off the problem as just one of those phantom things.

thanks all.
blu.
btw, since i was once flamed for closing a question where there was no solution, i shall split the points, sorry if i miss anyone out.

blu
:-)