document.ids.paddings()
JavaScript 1.2+ Nav4+ Syntax
document.ids.idName.paddings(top,right,bottom,left) document.ids.idName.paddings(top-bottom,right-left) document.ids.idName.paddings(all)
Description
The paddings() method specifies the distance between the borders of an element and its content. Using dot notation, the property is associated with the ID called idName. Setting the sizes is equivalent to setting the paddingBottom, paddingLeft, paddingRight, and paddingTop properties. Table 7.19 lists all the arguments associated with this method.
Item | Description |
---|---|
top | Padding between top border and content |
right | Padding between right border and content |
left | Padding between ... |
Get Pure JavaScript now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.