>> >> - Is there really no such pseudo-class? >> - Would this be technically impossible? >> - Has this been proposed before? >> - Any tips for proposing one? ;P >> >> Cheers >> Andre Schmidt > > > I accidentally replied off list with... > > a[class="table-of-contents"]{ > color: red; > } > > Google "Attribute Selectors" > > > > But more in line with the OP's actual question: > > a[href*="table-of-contents"]{ > color: red; > } > > > HTH >
As with many things, your browser support needs may vary. I believe this will work back to IE8 or 9. caniuse.com listed other attribute selectors but I didn't see this one specifically listed. -- Tom Livingston | Senior Front End Developer | Media Logic | ph: 518.456.3015x231 | fx: 518.456.4279 | medialogic.com #663399 ______________________________________________________________________ css-discuss [css-d@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/