
3
CSS Properties: An Introduction
Web Design 1
POSITION
Property Name Description Possible Values
position Species the type of positioning for
an element
absolute | relative
top Sets the top margin edge for a posi-
tioned box
length | percentage | auto
left Sets the left margin edge for a posi-
tioned box
length | percentage | auto
visibility Species whether or not an element
is visible
hidden | visible | inherit
z-index Sets the stack order of an ele-
ment
number | auto
overow Species what happens if content
overows an element’s box
visible | hidden | auto
COLOR AND BACKGROUND
Property Name Description Possible Values
color Sets the color of text color
background-color Sets the background color of an ele-
ment
color | transparent
background-image Sets the background image for an
element
url | none
background-repeat Sets how a background image will
be repeated
repeat | repeat-x | repeat-y | no-repeat
background-attach-
ment
Sets whether a background image
is xed or scrolls with the rest of the
page
scroll | xed
background-posi-
tion
Sets the starting position of a back-
ground image
[percentage | length]{1,2} | [top | center | bottom] ||
[left | center | right]
Kommentare zu diesen Handbüchern