Lista selektorów, cech i wartości


Czcionka
cecha wartości
(słowa kluczowe)
wartości
(przykładowe, konkretne)
font-family: serif
sans-serif
cursive
fantasy
monospace
Times
Arial
"Arial CE"
Times, Palatino, serif
font-size: xx-small
x-small
small
medium
large
x-large
xx-large
12pt
120%
+2pt
larger
smaller
font-style: normal
italic
obligue
 
font-weight: lighter
light
normal
bold
bolder
100 (najcieńsza)
200
300
400 (normalna)
...
700 (gruba)
...
900
Skrót (font i lista wartości), np.:
{font: bold 12/14 pt Times}
 
Kolor i tło
cecha wartości
(słowa kluczowe)
wartości
(przykładowe, konkretne)
color:
background-color:
white
red
blue
green
itd.
#C4FFFF
rgb (196,255,255)
background-image:
none
url (folder/image.gif)
background-position:
center center
10px 20px
50% 50%
1cm center
background-repeat:
repeat-x
repeat-y
no-repeat
 
Skrót (background i lista wartości), np.:
{background: url (plik.gif) blue repeat-y center}
 
Tekst
cecha wartości
(słowa kluczowe)
wartości
(przykładowe, konkretne)
letter-spacing:
  2px
line-height:
  14pt
120%
2.0
text-align:
left
right
center
justify
 
text-decoration:
underline
overline
line-through
blink
none
 
text-indent:
  3em
-3em
text-transform:
capitalize
uppercase
lowercase
none
 
vertical-align:
baseline
middle
sub
super
text-top
text-bottom
top
bottom
 
 
Listy
cecha OL UL
list-style-image: url (folder/image.gif) tak samo
list-style-position: inside
outside
tak samo
list-style-type: decimal
lower-roman
upper-roman
lower-alpha
upper-alpha
disc
circle
square
none

<<< Powrót do spisu treści