Show/hide active button

How would I display between two buttons, which is the active button state? Thanks

You would give the active button a class, such as “active” and use CSS to adjust its presentation.

Hello @paul_wilkins, so I have been using the code (CSS) below, however no dice. Works for hover just fine, but an active button won’t stay with the color - rgb(0,0,0). Any ideas?

Thanks

a.x{
background:rgb(252,252,252);
padding:3px 18px;
border-radius:7px 7px;
border:1px solid rgb(204,204,204);
color:rgb(102,102,102);
margin:0 12px 0 0!important;
cursor:pointer;
}

a.x:visited{
background:rgb(0,0,0);

}

a.x:hover{
background:rgb(153,153,153);
}

a.x:active{
background:rgb(0,0,0);
}

The :active CSS psuedo-class is when the link is clicked on. That is very different from what I was suggesting before.