I have created a custom CSS button class called linkbutton
. It is intended to work on both a
and input
as sometimes calls to action will be links and other times they will be real submit buttons. In this case an anchor setup like so doesn't render properly
<a href="" class="linkbutton disabled" id="folderManagementAdd">
<i class="icon-plus"></i>
<span>Add Sub Folder</span>
</a>
CSS:
.linkbutton.disabled, input[disabled=disabled].linkbutton, input:disabled.linkbutton
{
color: #ccc;
}
.linkbutton.disabled:hover, input[disabled=disabled].linkbutton:hover, input:disabled.linkbutton:hover
{
color: #ccc;
box-shadow: none;
border: 1px solid gainsboro;
cursor: default;
}
In IE8 this only works when I dont use the input:disabled
section at the end (which I need for real browsers). Is there something I can do to get around this? I really dont want to specify the CSS twice!