Well, that reference in the style sheet only applies to links, it is written only to work on <a> elements that have a "regbutton" class name.
For a button you'll want to reference the <input> element, or remove any reference to any element and include only the class name. For instance:
Code:
.regbutton {
font-size: 12px;
background-color: #D6D3CE;
font-family: Arial, Helvetica, sans-serif;
background-image: url(Tab_Button.png);
color: #FFFFFF;
}
.regbutton:hover {
color:#FF0066;
background:blue;
}
or
Code:
input.regbutton {
font-size: 12px;
background-color: #D6D3CE;
font-family: Arial, Helvetica, sans-serif;
background-image: url(Tab_Button.png);
color: #FFFFFF;
}
input.regbutton:hover {
color:#FF0066;
background:blue;
}
Keep in mind however, that Explorer only supports the :hover pseudo-class on <a> elements. This example will only work in browsers that support putting :hover pseudo-classes on any element (Mozilla, Mozilla Firefox, Netscape, Opera, Safari, etc).
HTH!
Regards,
Rich
--
[
http://www.smilingsouls.net]
Mail_IMAP: A PHP/C-Client/PEAR solution for webmail
Author: Beginning CSS: Cascading Style Sheets For Web Design