Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more ➡
Download
Standard view
Full view
of .
Add note
Save to My Library
Sync to mobile
Look up keyword
Like this
3Activity
×
0 of .
Results for:
No results containing your search query
P. 1
Css Quick Reference Manual

Css Quick Reference Manual

Ratings: (0)|Views: 189|Likes:
Published by devenuna

More info:

Published by: devenuna on Nov 16, 2009
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See More
See less

07/19/2010

pdf

text

original

 
background (¥)
Value:
<background-color> || <background-image><background-repeat> || <background-attachment><background-position>
Default:
not dened for shorthand properties
Percentage values:
allowed on <background-position>
color
Value:
<color>
Default:
UA specic
 FONT PROPERTIES
font-family
Value:
[[<family-name> | <generic-family>],]*[<family-name> | <generic-family>]
Default:
UA specic<generic-family>serif | sans-serif | cursive | fantasy | monospace
font-style
Value:
normal
| italic | oblique
font-variant
Value:
 
normal
| small-caps
font-weight
Value:
normal
| bold | bolder | lighter |100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900
font-size
Value:
<absolute-size> | <relative-size> | <length> | <percentage>
Percentage values:
relative to parent element’s font size
<absolute-size>xx-small | x-small | small |
medium
| large | x-large | xx-large
<relative-size>
larger | smaller
font
Value:
[ <font-style> || <font-variant> || <font-weight> ]?<font-size> [ / <line-height> ]? <font-family>
Default:
not dened for shorthand properties
Percentage values:
allowed on <font-size> and <line-height>
 TEXT PROPERTIES
word-spacing
Value:
normal
| <length>
letter-spacing
Value:
normal
| <length>
text-decoration (¥)
Value:
 
none
| [ underline || overline || line-through || blink ]
vertical-align (¥)
Value:
 
baseline
| sub | super | top | text-top | middle | bottom |text-bottom | <percentage>
 Applies to:
inline elements
Percentage values:
refer to the ‘line-height’ of the element itself 
text-transform
Value:
capitalize | uppercase | lowercase |
none
text-align
Value:
left | right | center | justify
Default:
UA specic
 Applies to:
block-level elements
text-indent
Value:
<length> | <percentage>
Default 
: 0
 Applies to:
block-level elements
Percentage values:
refer to parent element’s width
line-height
Value:
normal
| <number> | <length> | <percentage>
Percentage values:
relative to the font size of the element itself 
 CSS SAMPLES
H1 { font-family: Times }
 
/* all ‘H1’ elements */
H1, H2 { color: blue }
 
/* all ‘H1’ and ‘H2’ elements */
H1 EM { color : red }
 
/* ‘EM’ elements within ‘H1’ elements/
.para { font-family: Arial }
 
/* all elements with CLASS ‘para’ */
H1#z98y { letter-spacing: 0.5em }
 
/* the ‘H1’ element with ID ‘z98y’ */
 NOTATION
a b a followed by b[a b] Grouping of a and ba | b a or ba || b either a or b or both in any order a? a is optionala* zero or more occurrences of aa+ one or more occurrences of aa{1, 4} a occurs at least once and at most 4 times
 PSEUDO CLASSES AND PSEUDO ELEMENTS UNITS
Length units
<length>
(+ | -)? <number> <unit>
<number>
<digit>+[. <digit>*]?
<unit>
<absolute-unit> | <relative-unit>
<absolute-unit>mm | cm | in | pt | pc
<relative-unit>
em | ex | px
Percentage Units
<percentage><number>%
Color Units
<color><color-name> | <rgb-color><color-name>
aqua | black | blue | fuchsia | gray | green | lime | maroon |navy | olive | purple | red | silver | teal | white | yellow
<rgb-color>#<hex><hex><hex> |#<hex><hex><hex><hex><hex><hex> |
rgb(<number>, <number>, <number>) |rgb(<percentage> <percentage>, <percentage>)
URL
<url>url(text)
Anchor Pseudo Classes
 
A:link /* unvisited link */A:visited /* visited links */A:active /* active links */
Typographic Pseudo Elements
P:rst-line /* rst line of a P element */P:rst-letter /* rst letter of a P element */
CSS Quick Reference ManualCascading Style Sheets
Properties
- Box Properties
- Classication Properties- Color and Background Properties
- Font Properties- Text Properties
CSS SamplesNotationPseudo Class and Pseudo elementUnits
- Length Units
- Percentage Units
- Color Units
- Url
Day Two B.V.
http://www.day-two.nl/info@day-two.nl

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->