Title: Cascading Style Sheets Part two
1Cascading Style SheetsPart two
- Marko Boon
- http//www.win.tue.nl/marko/cursusCSS
2Appearance
Part 2
- Background properties
- Text properties
- Font properties
- Border properties
- List properties
- Scroll bar properties (IE gt5.5 only!)
3Background properties
Property Values
background-attachment scroll fixed
background-color colour transparent
background-image url none
4Background properties
Property Values
background-repeat repeat repeat-x / repeat-y no-repeat
background-position x- y x-pos y-pos top/center/bottom left/center/right
5Background properties - Example
body background-imageurl("bg.jpg")
background-repeatno-repeat background-position
top left background-attachmentfixed
6Text properties
Property Values
color colour
text-align left right center justify
letter-spacing normal length
7Text properties
Property Values
text-decoration none underline overline line-through blink
text-indent length
8Text properties - Example
a colorblack text-decorationnone ahov
er colorblue text-decorationunderline
9Font properties
Property Values
font-family family-name / font-name
font-size small / medium / large length
font-style normal italic oblique
10Font properties
Property Values
font-weight normal bold 100, 200, 300, , 900
font-stretch normalwidernarrower
11Font properties - Example
body font-family "Comic Sans MS",
sans-serif font-size18pt h1
font-size24pt font-weightbold
12Border properties
Property Values
border-color colour transparent
border-style none dotted, dashed, solid, double, groove, ridge, inset, outset
13Border properties
Property Values
border-width thin medium thick length
14Border properties
Up to four values possible
15Border properties
Up to four values possible
border-colorblue
black
black
black
black
16Border properties
Up to four values possible
border-colorblue
blue
blue
blue
blue
17Border properties
Up to four values possible
border-colorblue green
blue
blue
blue
blue
18Border properties
Up to four values possible
border-colorblue green
blue
green
green
blue
19Border properties
Up to four values possible
border-colorblue green red
blue
green
green
blue
20Border properties
Up to four values possible
border-colorblue green red
blue
green
green
red
21Border properties
Up to four values possible
border-colorblue green red yellow
blue
green
green
red
22Border properties
Up to four values possible
border-colorblue green red yellow
blue
green
yellow
red
The same for border-width and border-style.
23Border properties - Example
.button font-family "comic sans ms"
background-colorblue border-colorcyan navy
navy cyan border-width5 border-stylesolid
colorwhite
24List properties
Property Values
list-style-image url none
list-style-type disc, circle, square, decimal, lower-roman, upper-roman, lower-alpha, upper-alpha
list-style-position inside, outside
25List properties - Example
ol list-style-positioninside
list-style-imageurl("ball.gif")
list-style-typelower-roman
26Scroll bar properties (IE gt5.5 Only!)
scrollbar-arrow-color scrollbar-base-color
scrollbar-face-color scrollbar-highlight-color
scrollbar-shadow-color scrollbar-track-color
scrollbar-darkshadow-color scrollbar-3dlight-col
or