Westciv Logo

These materials are copyright Western Civilisation Pty Ltd.

www.westciv.com

They are brought to you courtesy of Style Master CSS Editor and Westciv's standards based web development courses.

Please see our website for detailed copyright information or contact us [email protected].

browser support

Selectors

More information, with detailed browser support notes, is included in the full version of our CSS Guide. This full version of the guide, available for purchase and download for just $24.99, is a complete reference to all of the CSS2 specification, with all the browser support information integrated alongside the descriptions of the properties and selectors.

These notes are also available as online help in both our CSS editor Style Master. Both these applications allow you to target certain browsers as you develop, and see where CSS design decisions you make may not work in some browsers.

Selectors browser support
Browser Internet Explorer Netscape Gecko Safari Opera
Platform Windows Mac All All All All
Version 4.0 5.0 5.5 6.0 7.0 5.0 4.x 1.0+ 1.2+ 7.0 +
Type selectors Y Y Y Y Y Y Y Y Y Y
Class selectors Y Y Y Y Y Y Y Y Y Y
ID selectors Y Y Y Y Y Y B Y Y Y
Descendent selectors Y Y Y Y Y Y B Y Y Y
Link pseudo class selectors Y Y Y Y Y Y B Y Y Y
Dynamic pseudo class selectors N N N N P P N Y Y Y
Pseudo element selectors
:first-line N N Y Y Y Y N Y Y Y
:first-letter N N Y Y Y Y N Y Y Y
:before N N N N N N N Y Y Y
:after N N N N N N N Y Y Y
Selector groups Y Y Y Y Y Y Y Y Y Y
Language pseudo class selectors N N N N N Y N N N N
Child selectors N N N N Y Y N Y Y Y
First child selectors N N N N Y Y N Y Y Y
Adjacent selectors N N N N Y Y N Y Y Y
Attribute selectors N N N N Y N N Y Y Y

Y=supported, P=partial, B=buggy, N=no. For details see here.

Style Master CSS Editor