user3584802
user3584802

Reputation: 1

CSS active is not working for selecting the tabs

Once we select the any tabs like account,bills,data,usage.Hovering working perfect. But selected backgroundcolor is not active state, Here is my css

.header :active, .footer:active {
    border: none;
    background:yellow;
    box-shadow: 0px 0px 1px #777;
}

JSFiddle

Upvotes: 0

Views: 59

Answers (1)

CMPS
CMPS

Reputation: 7769

Live demo

you should remove the space between header and :active

.header:active, .footer:active {
    border: none;
    background:yellow;
    box-shadow: 0px 0px 1px #777;
}

Upvotes: 2

Related Questions