Você está na página 1de 2

CSS1 PROPERTIES background-position (¥) § 5.3.6 margin-bottom (¥) § 5.5.

3
The Cascading Style Sheets Level 1 properties outlined here are grouped Value: [<percentage> | <length>]{1,2} | [top | center | bottom] || Value: <length> | <percentage> | auto
into the appropriate categories. For each property the following [left | center | right] Default: 0
information is specified: Default: 0% 0% Percentage values: refer to parent element's width
?? The property name and section number within the CSS1 specification Applies to: block-level and replaced elements margin-left (¥) § 5.5.4
?? The set of possible values for the property Percentage values: refer to the size of the element itself
?? The default value (in bold, or specified separately) Value: <length> | <percentage> | auto
background (¥) § 5.3.7
Default: 0
?? The elements that the property applies to (all unless otherwise stated)
Value: <background-color> || <background-image> || Percentage values: refer to parent element's width
?? ¥ indicates a property that is not inherited
<background-repeat> || <background-attachment> || margin (¥) § 5.5.5
The notation used in this Quick Reference is summarised at the end.
<background-position>
FONT PROPERTIES Default: not defined for shorthand properties Value: <length> | <percentage> | auto {1, 4}
Percentage values: allowed on <background-position> Default: not defined for shorthand properties
font-family § 5.2.2
Percentage values: refer to parent element's width
Value: [[<family-name> | <generic-family>],]* TEXT PROPERTIES padding-top (¥) § 5.5.6
[<family-name> | <generic-family>]
Default: UA specific word-spacing § 5.4.1 Value: <length> | <percentage>
Value: normal | <length> Default: 0
<generic-family> Percentage values: refer to width of closest block-level ancestor
letter-spacing § 5.4.2
serif | sans-serif | cursive | fantasy | monospace padding-right (¥) § 5.5.7
font-style § 5.2.3
Value: normal | <length>
Value: <length> | <percentage>
text-decoration (¥) § 5.4.3
Value: normal | italic | oblique Default: 0
Value: none | [ underline || overline || line-through || blink ] Percentage values: refer to width of closest block-level ancestor
font-variant § 5.2.4
vertical-align (¥) § 5.4.4 padding-bottom (¥) § 5.5.8
Value: normal | small-caps
Value: baseline | sub | super | top | text-top | middle | bottom | Value: <length> | <percentage>
font-weight § 5.2.5
text-bottom | <percentage> Default: 0
Value: normal | bold | bolder | lighter | Applies to: inline elements Percentage values: refer to width of closest block-level ancestor
100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 Percentage values: refer to the 'line-height' of the element itself padding-left (¥) § 5.5.9
font-size § 5.2.6
Value: <length> | <percentage>
text-transform § 5.4.5
Value: <absolute-size> | <relative-size> | <length> | <percentage> Default: 0
Percentage values: relative to parent element's font size Value: capitalize | uppercase | lowercase | none Percentage values: refer to width of closest block-level ancestor
text-align § 5.4.6 padding (¥) § 5.5.10
<absolute-size>
xx-small | x-small | small | medium | large | x-large | xx-large Value: left | right | center | justify Value: <length> | <percentage> {1, 4}
<relative-size> Default: UA specific Default: not defined for shorthand properties
larger | smaller Applies to: block-level elements Percentage values: refer to width of closest block-level ancestor
font § 5.2.7 text-indent § 5.4.7 border-top-width (¥) § 5.5.11

Value: [ <font-style> || <font-variant> || <font-weight> ]? Value: <length> | <percentage> Value: thin | medium | thick | <length>
<font-size> [ / <line-height> ]? <font-family> Default: 0 border-right-width (¥) § 5.5.12
Default: not defined for shorthand properties Applies to: block-level elements
Percentage values: refer to parent element's width Value: thin | medium | thick | <length>
Percentage values: allowed on <font-size> and <line-height>
line-height § 5.4.8 border-bottom-width (¥) § 5.5.13
COLOR AND BACKGROUND PROPERTIES
Value: normal | <number> | <length> | <percentage> Value: thin | medium | thick | <length>
color § 5.3.1 Percentage values: relative to the font size of the element itself border-left-width (¥) § 5.5.14
Value: <color>
BOX PROPERTIES Value: thin | medium | thick | <length>
Default: UA specific
border-width (¥) § 5.5.15
background-color (¥) § 5.3.2 margin-top (¥) § 5.5.1
Value: thin | medium | thick | <length> {1, 4}
Value: <color> | transparent Value: <length> | <percentage> | auto
Default: not defined for shorthand properties
Default: 0
background-image (¥) § 5.3.3 border-color (¥) § 5.5.16
Percentage values: refer to parent element's width
Value: <url> | none margin-right (¥) § 5.5.2 Value: <color>{1,4}
background-repeat (¥) § 5.3.4 Default: the value of the 'color' property
Value: <length> | <percentage> | auto
Value: repeat | repeat-x | repeat-y | no-repeat Default: 0 border-style (¥) § 5.5.17
background-attachment (¥) § 5.3.5 Percentage values: refer to parent element's width Value: none | dotted | dashed | solid | double |
groove | ridge | inset | outset
Value: scroll | fixed
border-top (¥) § 5.5.18 UNITS
Value: <border-top-width> || <border-style> || <color> Length units § 6.1
Default: not defined for shorthand properties
<length>
border-right (¥) § 5.5.19
(+ | -)? <number> <unit>
Value: <border-right-width> || <border-style> || <color> <number>
Default: not defined for shorthand properties <digit>+[. <digit>*]?
border-bottom (¥) § 5.5.20 <unit>
<absolute-unit> | <relative-unit>
Value: <border-bottom-width> || <border-style> || <color>
Default: not defined for shorthand properties
<absolute-unit>
mm | cm | in | pt | pc
Quick Reference
border-left (¥) § 5.5.21 <relative-unit>
em | ex | px
Value: <border-left-width> || <border-style> || <color>
Percentage Units § 6.2
Cascading Style Sheets
Default: not defined for shorthand properties
border (¥) § 5.5.22 <percentage>

(CSS)
<number>%
Value: <border-width> || <border-style> || <color>
Default: not defined for shorthand properties Color Units § 6.3
width (¥) § 5.5.23 <color> Level 1
<color-name> | <rgb-color>
Value: <length> | <percentage> | auto
<color-name>
Applies to: block-level and replaced elements
aqua | black | blue | fuchsia | gray | green | lime | maroon |
Percentage values: refer to parent element's width W3C Recommendation
navy | olive | purple | red | silver | teal | white | yellow
height (¥) § 5.5.24 <rgb-color> 17 December 1996, revised 11 January 1999
Value: <length> | auto #<hex><hex><hex> |
Applies to: block-level and replaced elements #<hex><hex><hex><hex><hex><hex> |
rgb(<number>, <number>, <number>) | http://www.w3.org/TR/REC-CSS1
float (¥) § 5.5.25
rgb(<percentage> <percentage>, <percentage>)
Value: left | right | none URL § 6.4
clear (¥) § 5.5.26
<url> Table of Contents:
Value: none | left | right | both url(text)
Properties
CLASSIFICATION PROPERTIES PSEUDO CLASSES AND PSEUDO ELEMENTS · Font Properties
display (¥) § 5.6.1 Anchor Pseudo Classes Typographic Pseudo Elements · Color and Background Properties
· Text Properties
Value: block | inline | list-item | none A:link /* unvisited link */ P:first-line /* first line of a P element */ · Box Properties
white-space § 5.6.2 A:visited /* visited links */ P:first-letter /* first letter of a P element */ · Classification Properties
A:active /* active links */
Value: normal | pre | nowrap
CSS SAMPLES Units
list-style-type § 5.6.3
· Length Units
H1 { font-family: Times } /* all ‘H1’ elements */
Value: disc | circle | square | decimal | lower-roman | upper-roman | · Percentage Units
lower-alpha | upper-alpha | none
H1, H2 { color: blue } /* all ‘H1’ and ‘H2’ elements */ · Color Units
Applies to: elements with 'display' value 'list-item' · URL
list-style-image § 5.6.4 H1 EM { color : red } /* ‘EM’ elements within ‘H1’ elements/
Value: <url> | none Pseudo Class and Pseudo elements
Applies to: elements with 'display' value 'list-item' .para { font-family: Arial } /* all elements with CLASS ‘para’ */
CSS Samples
list-style-position § 5.6.5
H1#z98y { letter-spacing: 0.5em } /* the ‘H1’ element with ID ‘z98y’ */
Value: inside | outside Notation
Applies to: elements with 'display' value 'list-item' NOTATION
a b a followed by b
list-style § 5.6.6
deepX Ltd.
[a b] Grouping of a and b
Value: <list-style-type> || <list-style-position> || <list-style-image> a | b a or b
Default: not defined for shorthand properties a || b either a or b or both in any order
Applies to: elements with 'display' value 'list-item' a? Dublin, Ireland
a is optional
a* zero or more occurrences of a
a+ one or more occurrences of a info@deepX.com
a{1, 4} a occurs at least once and at most 4 times http://www.deepX.com/

Você também pode gostar