CSS.pdf

(1558 KB) Pobierz
Cascading Style Sheets, Level 2
REC-CSS2-19980512
Cascading Style Sheets, level 2
CSS2 Specification
W3C Recommendation 12-May-1998
This version:
Latest version:
Previous version:
Editors:
Bert Bos <bbos@w3.org>
Håkon Wium Lie <howcome@w3.org>
Chris Lilley <chris@w3.org>
Ian Jacobs <ij@w3.org>
Abstract
This specification defines Cascading Style Sheets, level 2 (CSS2). CSS2 is a
style sheet language that allows authors and users to attach style (e.g., fonts,
spacing, and aural cues) to structured documents (e.g., HTML documents and
XML applications). By separating the presentation style of documents from the
content of documents, CSS2 simplifies Web authoring and site maintenance.
CSS2 builds on CSS1 (see [CSS1]) and, with very few exceptions, all valid
CSS1 style sheets are valid CSS2 style sheets. CSS2 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 specification also supports content positioning, downloadable fonts, table
layout, features for internationalization, automatic counters and numbering, and
some properties related to user interface.
Status of this document
This document has been reviewed by W3C Members and other interested parties
and has been endorsed by the Director as a W3C Recommendation. It is a stable
document and may be used as reference material or cited as a normative refer-
ence from another document. W3C’s role in making the Recommendation is to
draw attention to the specification and to promote its widespread deployment.
This enhances the functionality and interoperability of the Web.
1
27690607.003.png 27690607.004.png
A list of current W3C Recommendations and other technical documents can be
Public discussion of CSS features takes place on www-style@w3.org.
Available formats
The CSS2 specification is available in the following formats:
HTML:
http://www.w3.org/TR/1998/REC-CSS2-19980512
a plain text 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 (this is a ’.zip’ file not 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 between the various forms of the specification,
http://www.w3.org/TR/1998/REC-CSS2-19980512 is considered the definitive
version.
Available languages
The English version of this specification is the only normative version. However,
for translations in other languages see
Errata
The list of known errors in this specification is available at
report errors in this document to css2-editors@w3.org.
2
27690607.005.png
Quick Table of Contents
.
.
.
.
.
.
.
.
.
.
13
.
.
.
.
.
.
.
.
.
.
.
.
.
21
.
.
.
.
.
29
.
.
.
.
.
.
.
.
.
.
35
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
53
.
.
.
.
69
.
.
.
.
.
.
.
.
.
.
.
.
.
.
77
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
81
.
.
.
.
.
.
.
.
.
.
.
95
.
.
.
.
.
.
.
.
.
131
.
.
.
.
.
.
.
.
.
.
.
.
.
.
145
.
.
.
.
153
.
.
.
.
.
.
.
.
.
.
.
.
.
.
175
.
.
.
.
.
.
.
.
.
.
.
187
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
195
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
237
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
245
.
.
.
.
.
.
.
.
.
.
.
.
.
271
.
.
.
.
.
.
.
.
.
.
.
.
.
277
.
.
.
.
.
.
291
.
.
.
.
.
.
.
.
.
293
.
.
.
295
.
.
.
.
.
.
.
.
.
309
.
.
.
.
.
.
.
.
.
.
.
.
313
.
.
.
.
.
.
.
.
.
.
.
317
.
.
.
.
.
.
.
.
.
.
323
.
.
.
.
.
.
.
.
.
.
.
.
.
325
3
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
27690607.006.png
Full Table of Contents
.
.
.
.
.
.
.
.
.
.
13
.
.
.
.
.
.
.
.
.
.
13
.
.
.
.
.
.
.
.
13
.
.
.
.
.
.
.
.
.
.
.
.
.
.
14
.
.
.
14
.
.
.
.
.
.
.
.
14
.
.
.
.
.
.
.
.
.
.
.
.
.
14
.
.
.
.
.
.
.
.
.
.
.
.
.
16
.
.
.
.
.
.
.
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