Category | Subject | Sinopsys | Description | Example/Values |
---|---|---|---|---|
margin | Sets the size of the overall margin of an element.Multiple values start from the top and go clockwise. | H1 {margin: 2em;} P {0% 5% 0% 5%;} |
||
margin-top | Sets the size of the top margin of an element. Negative values are permitted, but exercise caution. Negative margins not handled well by Netscape 4! | |||
margin-right | Sets the size of the right margin of an element. Negative values are permitted | |||
margin-bottom | Sets the size of the bottom margin of an element. Negative values are permitted | |||
margin-left | Sets the size of the left margin of an element. Negative values are permitted | |||
padding | Sets the size of the overall padding of an element, which will inherit the element's background. Negative values are not permitted | |||
padding-top | Sets the size of the top padding of an element, which will inherit the element's background. Negative values are not permitted. | |||
padding-right | Sets the size of the right padding of an element, which will inherit the element's background. Negative values are not permitted. | |||
padding-bottom | Sets the size of the bottom padding of an element, which will inherit the element's background. Negative values are not permitted. | |||
padding-left | Sets the size of the left padding of an element, which will inherit the element's background. Negative values are not permitted. | |||
border | ||||
border-top | Shorthand property which defines the width, color, and style of the top border of an element. | |||
border-bottom | Shorthand property which defines the width, color, and style of the bottom border of an element. | |||
border-right | Shorthand property which defines the width, color, and style of the right border of an element. | |||
border-left | Shorthand property which defines the width, color, and style of the left border of an element. | |||
border-color | Sets the color of the border of an element.All 4 borders may be separately set | |||
border-top-color | ||||
border-right-color | ||||
border-bottom-color | ||||
border-left-color | ||||
border-style | Sets the style of the overall border of an element. | dashed; dotted; double; groove; inset; outset; ridge; solid; none | ||
border-top-style | ||||
border-right-style | ||||
border-bottom-style | ||||
border-left-style | ||||
border-width | Sets the width of the overall border of an element, which will inherit the element's background, and may have a foreground of its own (see border-style). Negative values are not permitted. | |||
border-top-width | Sets the width of the top border of an element, which will inherit the element's background, and may have a foreground of its own (see border-style). Negative values are not permitted. | |||
border-right-width | Sets the width of the right border of an element, which will inherit the element's background, and may have a foreground of its own (see border-style). Negative values are not permitted. | |||
border-bottom-width | Sets the width of the bottom border of an element, which will inherit the element's background, and may have a foreground of its own (see border-style). Negative values are not permitted. | |||
border-left-width | Sets the width of the left border of an element, which will inherit the element's background, and may have a foreground of its own (see border-style). Negative values are not permitted. |