HTML and CSS Reference
In-Depth Information
/* pseudo-classes can be used to select alternating pages as well
as the first page */
@page :left {margin: .5in;}
@page :right {margin: 1.5in;}
@page :first {margin: 5in;}
• This construct is not well supported, even in modern browsers.
This construct specifies that a style takes precedence over any different, conflicting styles.
This construct should be used sparingly.
body {font-family: Times;}
div {font-size: 14pt; line-height: 150%; font-family: Arial ! important;}
#div1 {font-family: Sans-Serif;}
/* all divs, no matter how used, will be in Arial, see !important */
CSS1 and CSS 2.1 Properties
This section presents the CSS1 and 2.1 properties in alphabetical order. CSS2 properties that
were dropped from the CSS 2.1 specification are presented in Chapter 6, which covers
emerging and proprietary CSS properties.
Note that the properties tend to come in groups and that most groups have shorthand
notation. For example, the background property is shorthand for background-color ,
background-image , background-position , and background-attachment . Individual
properties of a set may contain extra details, which are noted in the corresponding section
for that property and are not necessarily repeated in the section for the shorthand entry of
the set.
The property entries that follow generally include the following information:
Brief summary Brief summary of the property's purpose.
Syntax Syntax for the element, including allowed values defined by the W3C
Example(s) One or more examples demonstrating use of the property.
Compatibility The property's general compatibility with CSS specifications and
browser versions.
Note(s) Additional information about the property or its usage. This may include
some CSS3 details for properties that are only slightly modified in the emerging
specification. The bulk of the CSS3 information is presented in Chapter 6.
All the values allowed with a property are defined in the earlier section “CSS
Measurements.” Similarly, the examples assume that you understand selectors, which
are summarized in the earlier section “CSS Selectors.”
Search WWH ::

Custom Search