HTML and CSS Reference
In-Depth Information
CSS Version
Description
CSS1
Classic CSS implementation that introduced text, list, box, margin, border, color,
and background properties. Initially defined in 1996, most every feature of CSS1
is supported in Web browsers, but small quirks do exist around some lesser-used
features like white-space , letter-spacing , display , and others. Some
problems with CSS1 support are more significant in older, pre-Internet Explorer 7
browsers.
CSS2
Specification that is primarily known for positioning and media, particularly print
style sheet features. Many aspects of CSS2, such as aural style sheets, were never
widely implemented and were removed in a later iteration of the CSS specification.
CSS 2.1
A revision of the CSS2 specification that makes some corrections and is normalized
to more clearly represent what most browser vendors have implemented. Note that
many CSS2 features removed from this specification are found in CSS3 modules.
This is currently the recommended CSS specification for study and use.
CSS3
Modularized specification of CSS. Various modules extend and improve aspects
of previous CSS versions; for example, the CSS3 Color module addresses color
correction, transparency, and more, while the CSS3 Fonts module addresses
features to add effects to fonts, adjust their display, and even download custom
fonts. Some modules are all new, like the Transitions and Animations modules,
and others are quite old looking with activity levels suggesting they are abandoned
or near abandon. Whatever the situation, when it comes to CSS3, readers are
encouraged to check the CSS3 Web site and test support carefully.
T ABLE 4-1 Description of Common CSS Versions
Prefix
Organization
Example
Notes
Microsoft
Some older proprietary CSS
features found in Internet
Explorer are not prefixed in
any way.
-ms-
-ms-interpolation-mode
-moz-
Mozilla Foundation
-moz-border-radius
This applies to all Gecko
rendering engine-based
browsers such as Firefox.
-o-
Opera
-o-text-overflow
Opera also supports the
-xv- prefix for experimental
voice support for aural style
sheet properties like -xv-
voice-family .
WebKit
This applies to all WebKit
engine-based browsers such
as Apple's Safari and Google
Chrome.
-webkit
-webkit-box-shadow
T ABLE 4-2 CSS Extension Prefixes
Search WWH ::




Custom Search