Q:

Can I get a stylesheet to detect a custom tag on a page element?

Can I get a stylesheet to detect a custom tag on a page element?
I'd like to add some functionality into a stylehseet that can detect a disabled="disabled" attribute on a linkbutton and grey it out.
[UPDATE]
Great suggestions. This effectively resolved the disabled buttons not showing up as grayed out in firefox and google chrome.  The following was what I put into the style sheet and now all my link buttons render correctly.
a[disabled]{  
  color:Grey !important;
 text-decoration:none !important;
  }

A:

You can use CSS2 selector(if browser support it.) to display style base on tag property. But I found some problem when I use "disabled" property in IE8.By default IE8 display tag that is disabled by grey it(stylesheet can't change it).
From the following code, FF3 display green hyperlink. But IE8 display grey hyperlink.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd" >
<html>
<head>

<title>Ask a Question - Stack Overflow</title>
<style>
a[disabled="true"]
{
    color:Green !important;
}
</style>
</head>

<body>
 <a href="www.microsoft.com" disabled="true">Microsoft Site</a>
</body>
</html>

