Hi
I'm trying to build some attribute selectors in CSS to check for missing
content. Ie.
IMG[alt=""]
{
border-width: 3px;
border-color: #ff0000;
border-style: solid;
}
// will place a red border around any image with an empty ALT tag
IMG:not([alt])
{
border-width: 3px;
border-color: #ff0000;
border-style: dotted;
}
// will place a red border around any image with no ALT tag
The problem is the second one (not) only works with Firefox and Chrome. It
won't work in IE8
Does anyone have a suggestion?
Thanks
Tim
-----------------------------------------------------------------------------------------------------------
Tim Baillie | Quality Assurance Coordinator, ACUonline | Australian Catholic
University
Email [email protected]<mailto:[email protected]> | Phone +61 2 9739
2287 | Facsimile +61 2 9460 4380
North Sydney Campus (MacKillop)
Office 4, Level 1, 23 Berry Street
North Sydney NSW 2060 Australia
PO Box 968 | North Sydney | NSW 2059
CRICOS Reg. 00004G, 00112C, 00873F, 00885B
Blackboard Support Phone 1800 759 660 (Ask for ACU Blackboard support)
Email [email protected]<mailto:[email protected]>
If anyone can show me, and prove to me, that I am wrong in thought or deed, I
will gladly change. I seek the truth, which never yet hurt anybody. It is only
persistence in self-delusion and ignorance which does harm.
- Marcus Aurelius Antoninus Augustus
*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [email protected]
*******************************************************************