Академический Документы
Профессиональный Документы
Культура Документы
Internal CSS
<style type=”text/css”>
List
selector {property: value}
</style> list-style-type Type of bullet or numbering in the list
disc; circle; square; decimal; lower-roman; upper-roman;
Inline CSS
<tag style=”property: value”> lower-alpha; upper-alpha; none
General
list-style-position Position of bullet or number in the list
class String preceded by a full stop [.] inside; outside
ID String preceded by a hash [#] list-style-image Image to be used as bullet
div Formats structure or block of text.
span Inline formatting Pseudo Selectors
color Foreground color :hover
cursor Appearance of the cursor :active
display block; inline; list-item; none; :focus
overflow How to handle content that overflows its box. :link
visible; hidden; scroll; auto;
:visited
visibility visible; hidden;
:first-line
:first-letter
Font
Media Types
font-style italic; normal;
all
font-variant normal; small-caps;
braille
font-weight normal; bold; lighter; bolder; integer [100-900]
embossed
font-size Size of the font
handheld
font-family Font to be used
print
projection
Text
screen
letter-spacing Space between letters
speech
line-height Vertical distance between lines
tty
text-align Horizontal alignment tv
text-decoration blink; line-through; overline; underline; none; Units
text-indent First line indentation
%
text-transform capitalize; lowercase; uppercase; pt
vertical-align Vertical alignment px
word-spacing spacing between words em
cursor + outline-style
Sizes and Colours Color / Background
outline x outline-color
0 0 requires no unit color + background-repeat outline-width
Relative Sizes background x background-image
em 1em equal to font size of background-color background-position
Aural
parent (same as 100%) background-attachment
ex Height of lower case "x" volume + elevation
% Percentage speak + speech-rate
Text
Absolute Sizes pause x voice-family
px Pixels text-indent + word-spacing + pause-before pitch
Text
cm Centimeters text-align + text-transform + pause-after pitch-range
mm Millimeters text-decoration white-space + cue x stress
in Inches text-shadow line-height + cue-before richness
pt 1pt = 1/72in letter-spacing + cue-after speak-punctuation
pc 1pc = 12pt play-during speak-numeral
Colours azimuth +
Fonts
#789abc RGB Hex Notation
#acf Equates to "#aaccff" font + x font-weight +
Miscellaneous
rgb(0,25,50) Value of each of red, green, font-family + font-stretch +
and blue. 0 to 255, may be font-style + font-size + content list-style-type +
swapped for percentages. font-variant + font-size-adjust + quotes + list-style-image +
counter-reset list-style-position +
Shorthand properties are marked x Available free from counter-increment marker-offset
Note
Properties that inherit are marked + www.AddedBytes.com list-style + x
CSS Shorthand Cheat Sheet
margin, padding, border-width, outline-width: specifying 4 parameters:
1un 2un 3un 4un
1un
border-color, outline-color: #xxx #xxx #xxx #xxx
or
border-style, outline-style: solid dotted dashed double
default: disc outside none; (type becomes default when image not found!!!)
list-style: (type) (position) (image)