Jump to content

.sidebar_menu:active not works? Need help


rahulephp

Recommended Posts

 

Hi there,

Kindly have a look on below CSS property.

What i want to ask is: when i'll click on a button, it should be look active. I mean it would have to get property of .sidebar_menu:active

But it doen't works.

Please elp me out from this.

 

 

 

 

 

<!--Sidebar menu button start-->

 

.input {

color : #FF9000;

font-size:20px;

;

}

 

.sidebar_menu{

    border: 0px;

    background: url('images/word-real.jpg') no-repeat top left;

font-size:18px;

font-weight:bold;

text-decoration:none;

color:#FFFFFF;

font-family: Verdana, Arial, Helvetica;;

width:97px;

height:42px

   

}

.sidebar_menu:hover {

    border: 0px;

    background: url('images/word-over.jpg') no-repeat top left;

color:#009BC9;

 

}

 

.sidebar_menu:active {

    border: 0px;

    background: url('images/word-over.jpg') no-repeat top left;

color:#009BC9;

}

 

br { clear: left; }

<!--Sidebar menu button End-->

 

 

 

 

 

<a rel="11"><input type="button" value="worship" class="sidebar_menu"/></a>

<a rel="22"><input type="button" value="prayer" class="sidebar_menu"/></a>

<a rel="33"><input type="button" value="cell" class="sidebar_menu"/></a>

<a rel="44"><input type="button" value="city" class="sidebar_menu"/></a>

<a rel="55"><input type="button" value="mission" class="sidebar_menu"/></a>

 

Link to comment
Share on other sites

Unfortunately, :active doesn't work that way. It would make sense that :active would mean that the URL in the link leads to the current page. But actually, :active is for when a link has been clicked, before the page has switched over.

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.