/    Sign up×
Community /Pin to ProfileBookmark

Link / Hover links not working as should

Am i completely missing something here? I want the link to be Red and when you rollover/hover it goes Black. Then once clicked i want the link to remain Red but instead it goes black.

[CODE]a img {
border: none;
text-decoration;
}

a {
outline: none;
}

a:link {
text-decoration: none;
outline: none;
color: #990000;
}

a:hover {
text-decoration: none;
color: #000000;
}

a:visited {
text-decoration: none;
}[/CODE]

I can attached the entire CSS file if there might be something in there that’s causes a conflict.

Appreciate any help – its got me stumped

to post a comment
CSS

5 Comments(s)

Copy linkTweet thisAlerts:
@FangMay 13.2009 — Requires JavaScript.

Give an example of the html used.
Copy linkTweet thisAlerts:
@skilled1May 13.2009 — this is what you need [CODE]a img {
border: none;
text-decoration;
}

a {
outline: none;
}

a:link {
text-decoration: none;
outline: none;
color: #990000;
}

a:hover {
text-decoration: none;
color: #000000;
}

a:visited {
text-decoration: none; color: #990000;
}[/CODE]
Copy linkTweet thisAlerts:
@adam_fakeauthorMay 14.2009 — That's the thing - i've tried that and it still doesn't revert the hover color to Black. I keeps the visited link Red.
Copy linkTweet thisAlerts:
@skilled1May 14.2009 — works for me on safari and firefox on a mac
Copy linkTweet thisAlerts:
@adam_fakeauthorMay 15.2009 — No no, i know you're right as i've used this man times. I'm using Joomla for the back-end so it maybe something in there that's conflicting.
×

Success!

Help @adam_fake spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.1,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...