CSS -- Box properties


PropriétésValeur
Valeur initialeAppliquée àHéritéevaleur %
'margin-top'
'margin-right'
'margin-bottom'
'margin-left'
<length> | <percentage> | auto
0all elementsnonrefer to parent element's width
'margin'[ <length> | <percentage> | auto ] {1,4}
not defined for shorthand propertiesall elementsnonrefer to parent element's width
'padding-top'
'padding-right'
'padding-bottom'
'padding-left'
'padding'
<length> | <percentage>


[ <length> | <percentage> ] {1,4}
0all elementsnonrefer to parent element's width
'border-top-width'
'border-right-width'
'border-bottom-width'
'border-left-width'
thin | medium | thick | <length>
mediumall elementsnonN/A
'border-width'[ thin | medium | thick | <length> ] {1,4}
not defined for shorthand propertiesall elementsnonN/A
'border-color'<color> {1,4}
the value of the 'color' propertyall elementsnonN/A
'border-style'none | dotted | dashed | solid | double | groove | ridge | inset | outset
noneall elementsnonN/A
'border-top'
'border-right'
'border-bottom'
'border-left'
'border'
<border-top-width> || <border-style> || <color>
<border-right-width> || <border-style> || <color>
<border-bottom-width> || <border-style> || <color>
<border-left-width> || <border-style> || <color>
<border-width> || <border-style> || <color>
not defined for shorthand propertiesall elementsnonN/A
'width'<length> | <percentage> | auto
autoblock-level and replaced elementsnonrefer to parent element's width
'height'<length> | auto
autoblock-level and replaced elementsnonN/A
'float'left | right | none
'clear'none | left | right | both
noneall elementsnonN/A

margin-left: n
Defines the left margin. n is a number followed by either "px" (for pixels), "in" (for inches), "pt" (for points) or "cm" (for centimeters), for example "10pt".

margin-top: n
Defines the top-margin. n is a number followed by either "px" (for pixels), "in" (for inches), "pt" (for points) or "cm" (for centimeters), for example "10pt".


Christophe Merlet
redfox@redfoxcenter.org
©Tous droits réservés
11 avril 1997