Contents Index Topic Contents | ||
Previous Topic: overflow Next Topic: padding-bottom |
padding
Description
Specifies the padding-top, padding-bottom, padding-left, and padding-right in one style sheet rule. Padding describes how much space to insert between the element and its margin, or if there is a border, between the element and its border.
Syntax
{ padding: [ length | percentage ] {1,4}}
Remarks
This is a composite property. The "{1,4}" means that up to four values can be specified. The order is top, right, bottom, left. If there is only one value specified, it applies to all sides; if there are two or three, the missing values are taken from the opposite side. Negative values are not allowed. This property is supported on block and replaced elements only.
This attribute is not inherited.
Applies To
BODY, CAPTION, DIV, FIELDSET, IFRAME, LEGEND, MARQUEE, TABLE, TD, TEXTAREA, TR
Scripting Property
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.