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


Programming Group Advisor
Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
Car is to Carpet as Java is to JavaScript
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;
cursorointer;
}
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.
Programming Group Advisor
Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
Car is to Carpet as Java is to JavaScript
Bookmarks