Skip to content Skip to sidebar Skip to footer

How To Get My Navigation Button Stay Active

Can't get my navigation to stay active using html and css. It just light up but does not stay active when pressed. What am I missing? How do I make it stay active when pressed? Rea

Solution 1:

Just change #menu2 a:hover{ to #menu2 a:hover, #menu2 a:active {.

You just have to add #menu2 a:active to the CSS.

#menu2a:hover,#menu2a:active{
  background-image: url(bildes/apak_navig_green.png);
  color:white;
  font:14px Arial;
  color:black;  
  text-decoration:none;
  display: block;
  line-height:30px;
}

I tried it but it just does not work. It continues to just hover, but does not stay active when I press it.

Post a Comment for "How To Get My Navigation Button Stay Active"