/    Sign up×
Community /Pin to ProfileBookmark

#nav a:active{
background-color:#000;
color:#FFF;
}

is there any reason a:active wouldn’t work as it just doesn’t seem to be working at all.

i know its a n00b question ?

to post a comment
CSS

7 Comments(s)

Copy linkTweet thisAlerts:
@ray326Jan 09.2007 — Assuming a is inside something with id="nav".
Copy linkTweet thisAlerts:
@WebJoelJan 09.2007 — ...and that it's particular styling isn't an exact match for another/all other state(s). If the "a", "link", "visited", "hover" [I]and[/I] "active" states are the same (white background with black text), -[I]you'd never know[/I] if it's working as all states would be the same, all the time. ? (okay, -clearly stating the blatantly obvious, -I just had to give a [I]longer reply[/I] than what has been offered so far...) :p
Copy linkTweet thisAlerts:
@ray326Jan 10.2007 — Uh oh. I'm in trouble if we're starting to rate these things by word count. ?
Copy linkTweet thisAlerts:
@CentauriJan 10.2007 — Note that "active" state has nothing to do with whether the link points to currently displayed page - is this what you were expecting? The active state will only exist while the mouse button is down on the link.

Cheers

Graeme
Copy linkTweet thisAlerts:
@felgallJan 10.2007 — You do have the entries in the order Link, Visited, Hover, Active so that the other three don't override it?
Copy linkTweet thisAlerts:
@grumpyoldtechsauthorJan 11.2007 — ye i've use a different method of setting the button as active (when its on the page it points to)

for some reason i had the wrong representation of the active state.
×

Success!

Help @grumpyoldtechs 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 5.17,
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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

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

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...