Button styling

Hi,

can anyone tell me what is the css class for a button when is click.

Thanks.

It’s v-button and it gets the :active pseudo-class while being pressed, that is, the rule .v-button:active {} matches.

Firebug is a great tool for finding such things out.

Thanks for your answer.

IE6/7/8 also get the additional .v-pressed class for the button element when it’s pressed.

So to get a cross-browser solution, use the following (and do mind that IE6 doesn’t properly support the multiple class selector, it will only match by the last specified class, v-pressed in this case, so all you buttons will have the same down state):

.v-button:active,
.v-button.v-pressed {
    ...
    }