Skip to content

Instantly share code, notes, and snippets.

View Error-331's full-sized avatar

Sergei Selihov Error-331

  • Nikolaev (Ukraine)
View GitHub Profile
@Error-331
Error-331 / gist:1616777
Created January 15, 2012 19:00
CSS Selectors
/* CSS2 */
/* CSS2 attribute selectors */
a[rel] { color: yellow; } /* simple attribute selector */
a[rel='nofollow'] { color: yellow; } /* exact attribute value selector */
a[rel~='nofollow'] { color: yellow; } /* partial attribute value selector */
a[lang|='ru'] { color: red; } /* Language Attribute Selector */
/* CSS3 */