
2
CSS Properties: An Introduction
Web Design 1
BOX PROPERTIES
Property Name Description Possible Values
margin Sets all the margin properties in one
declaration
length | percentage | auto
margin-top Sets the top margin of an ele-
ment
length | percentage | auto
margin-right Sets the right margin of an ele-
ment
length | percentage | auto
margin-bottom Sets the bottom margin of an ele-
ment
length | percentage | auto
margin-left Sets the left margin of an ele-
ment
length | percentage | auto
padding-top Sets the top padding of an ele-
ment
length | percentage
padding-right Sets the right padding of an ele-
ment
length | percentage
padding-bottom Sets the bottom padding of an ele-
ment
length | percentage
padding-left Sets the left padding of an ele-
ment
length | percentage
border-color Sets the color of the four borders color
border-style Sets the style of the four bor-
ders
solid | double | groove | ridge | inset | outset
border Sets all the border properties in one
declaration
border-width | border-style | color
CLASSIFICATION PROPERTIES
Property Name Description Possible Values
Display Species the type of box an element
should generate
block | inline | list-item | none
Whitespace Species how white-space inside an
element is handled
normal | pre | nowrap
List Style Type Species the type of list-item marker disc | circle | square | decimal | lower-roman | upper-
roman | lower-alpha | upper-alpha | none
List Style Image Species an image as the list-item
marker
<url> | none
Kommentare zu diesen Handbüchern