paddingpadding*
*Contents  *Index  *Topic Contents
*Previous Topic: owningElement
*Next Topic: paddingBottom

padding

Description

Sets or retrieves paddingTop, paddingBottom, paddingLeft, and paddingRight in one style sheet rule.

Syntax

object.style.padding[ = padding]

Remarks

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.

This is a composite property. Up to four values can be specified. The order is top, right, bottom, left. If there is only one value, 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.

The property has read/write permission.

Applies To

HTML Tags BODY, CAPTION, DIV, IFRAME, MARQUEE, TABLE, TD, TEXTAREA, TR
Scripting style

CSS Attribute

padding


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.