CSS 3 Attribute Selectors

Another article of mine makes its appearance at the Opera Developer Community thanks to Chris Mills and Bruce Lawson.

This time the topic covers CSS 3 Attribute Selectors:

CSS attribute selectors allow us to pinpoint the values of attributes of an element and to style that element accordingly. CSS3 introduces three new selectors that can match strings against an attribute value at the beginning, the end, or anywhere within the value.

This provides powerful new ways to style elements automatically that match very specific criteria. In this article, I will put these new attribute selectors in action and create some clever CSS rules that attach icons to links based on the value of the href attribute.

To read the rest of the article, head over to the dev.opera.com Web site.

One thought on “CSS 3 Attribute Selectors

Leave a Reply

Your email address will not be published. Required fields are marked *