Propriétés | Valeur | ||
---|---|---|---|
Valeur initiale | Appliquée à | Héritée | valeur % |
'margin-top' 'margin-right' 'margin-bottom' 'margin-left' | <length> | <percentage> | auto | ||
0 | all elements | non | refer to parent element's width |
'margin' | [ <length> | <percentage> | auto ] {1,4} | ||
not defined for shorthand properties | all elements | non | refer to parent element's width |
'padding-top' 'padding-right' 'padding-bottom' 'padding-left' 'padding' | <length> | <percentage> [ <length> | <percentage> ] {1,4} | ||
0 | all elements | non | refer to parent element's width |
'border-top-width' 'border-right-width' 'border-bottom-width' 'border-left-width' | thin | medium | thick | <length> | ||
medium | all elements | non | N/A |
'border-width' | [ thin | medium | thick | <length> ] {1,4} | ||
not defined for shorthand properties | all elements | non | N/A |
'border-color' | <color> {1,4} | ||
the value of the 'color' property | all elements | non | N/A |
'border-style' | none | dotted | dashed | solid | double | groove | ridge | inset | outset | ||
none | all elements | non | N/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 properties | all elements | non | N/A |
'width' | <length> | <percentage> | auto | ||
auto | block-level and replaced elements | non | refer to parent element's width |
'height' | <length> | auto | ||
auto | block-level and replaced elements | non | N/A |
'float' | left | right | none | ||
'clear' | none | left | right | both | ||
none | all elements | non | N/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 |