W3C

REC-CSS2-19980512Cascading Style Sheets,Sheets Level 2 CSS2Revision 1 (CSS 2.1) Specification

W3C Recommendation 12-May-1998Editors Draft 29 April 2013

This version:
http://www.w3.org/TR/1998/REC-CSS2-19980512http://www.w3.org/TR/2013/ED-CSS2-20130429
Latest version:
http://www.w3.org/TR/REC-CSS2http://www.w3.org/TR/CSS2
Previous version: http://www.w3.org/TR/1998/PR-CSS2-19980324versions:
http://www.w3.org/TR/2011/REC-CSS2-20110607
http://www.w3.org/TR/2008/REC-CSS2-20080411/
Editors:
Bert Bos <>
Håkon Wium LieTantek Çelik <>
Chris LilleyIan Hickson <>
Ian JacobsHåkon Wium Lie <>

Please refer to the errata for this document.

This document is also available in these non-normative formats: plain text, gzip'ed tar file, zip file, gzip'ed PostScript, PDF. See also translations.


Abstract

This specification defines Cascading Style Sheets, level 2 (CSS2). CSS2level 2 revision 1 (CSS 2.1). CSS 2.1 is a style sheet language that allows authors and users to attach style (e.g., fonts, spacing,fonts and aural cues)spacing) to structured documents (e.g., HTML documents and XML applications). By separating the presentation style of documents from the content of documents, CSS2CSS 2.1 simplifies Web authoring and site maintenance.

CSS 2.1 builds on CSS2 [CSS2] which builds on CSS1 (see[CSS1] ) and, with very few exceptions, all valid CSS1 style sheets are valid CSS2 style sheets. CSS2. It supports media-specific style sheets so that authors may tailor the presentation of their documents to visual browsers, aural devices, printers, braille devices, handheld devices, etc. This specificationIt also supports content positioning, downloadable fonts,table layout, features for internationalization, automatic counters and numbering,internationalization and some properties related to user interface.

StatusCSS 2.1 corrects a few errors in CSS2 (the most important being a new definition of this document This document has been reviewed by W3C Membersthe height/width of absolutely positioned elements, more influence for HTML's "style" attribute and other interested partiesa new calculation of the 'clip' property), and hasadds a few highly requested features which have already been endorsed by the Director aswidely implemented. But most of all CSS 2.1 represents a W3C Recommendation."snapshot" of CSS usage: it consists of all CSS features that are implemented interoperably at the date of publication of the Recommendation.

CSS 2.1 is a stable documentderived from and is intended to replace CSS2. Some parts of CSS2 are unchanged in CSS 2.1, some parts have been altered, and some parts removed. The removed portions may be used asin a future CSS3 specification. Future specs should refer to CSS 2.1 (unless they need features from CSS2 which have been dropped in CSS 2.1, and then they should only reference materialCSS2 for those features, or cited as a normativepreferably reference from another document. W3C's rolesuch feature(s) in making the Recommendation is to draw attention tothe specification and to promote its widespread deployment.respective CSS3 Module that includes those feature(s)).

Status of this document

This enhancessection describes the functionality and interoperabilitystatus of this document at the Web.time of its publication. Other documents may supersede this document. A list of current W3C Recommendationspublications and otherthe latest revision of this technical documentsreport can be found in the W3C technical reports index at http://www.w3.org/TR . Public discussionhttp://www.w3.org/TR/.

This is a copy of CSS features takes place on www-style@w3.org . Available formatsthe CSS2 specificationeditors' draft for the next revision of the Recommendation. It is availableused by the working group as an aid in checking the following formats: HTML: http://www.w3.org/TR/1998/REC-CSS2-19980512 a plaintext file: http://www.w3.org/TR/1998/REC-CSS2-19980512/css2.txt , HTML as a gzip'ed tar file: http://www.w3.org/TR/1998/REC-CSS2-19980512/css2.tgz , HTML as a zip file (thisof the errata. It is a '.zip' filenot an '.exe'): http://www.w3.org/TR/1998/REC-CSS2-19980512/css2.zip , as well as a gzip'ed PostScript file: http://www.w3.org/TR/1998/REC-CSS2-19980512/css2.ps.gz , and a PDF file: http://www.w3.org/TR/1998/REC-CSS2-19980512/css2.pdf . In case of a discrepancy betweenofficial Working Draft.

This document was produced by the English versionCSS Working Group (part of the Style Activity).

This specification isdocument was produced by a group operating under the only normative version. However, for translations in other languages see http://www.w3.org/Style/css2-updates/translations.html5 February 2004 W3C Patent Policy. Errata TheW3C maintains a public list of known errorsany patent disclosures made in this specification is available at http://www.w3.org/Style/css2-updates/REC-CSS2-19980512-errata.html . Please report errorsconnection with the deliverables of the group; that page also includes instructions for disclosing a patent. An individual who has actual knowledge of a patent which the individual believes contains Essential Claim(s) must disclose the information in this document to css2-editors@w3.orgaccordance with section 6 of the W3C Patent Policy.

All changes since the previous Working Draft, the previous Candidate Recommendation and the previous Recommendation are listed in appendix C.

Quick Table of Contents

Full Table of Contents