javascript paddingBottom property
Translation results:
padding
英[ˈpædɪŋ] 美[ˈpædɪŋ]
n.Padding; lining; redundant language; nonsense
v. To pad..., to add cushions (the present participle of pad); to walk, to walk lightly
bottom
UK[ˈbɒtəm] US[ˈbɑ:təm]
n. Bottom; end; hip; end
adj. Bottom of
vt. Install the bottom; measure the depth; find out the truth
vi. Reach the bottom; establish a foundation
Third person singular: bottoms Plural: bottoms Present participle: bottoming Past tense: bottomed Past participle: bottomed
javascript paddingBottom propertysyntax
Function: Set the lower padding of the element. Defines the space between the element's border and its content.
Syntax: Object.style.paddingBottom=length|%
javascript paddingBottom propertyexample
<html> <head> <style type="text/css"> p { border: thin dotted #FF0000; } </style> <script type="text/javascript"> function changePadding() { document.getElementById("p1").style.paddingBottom="2cm"; } </script> </head> <body> <input type="button" onclick="changePadding()" value="Change bottom padding" /> <p id="p1">This is a paragraph</p> </body> </html>
Run instance »
Click the "Run instance" button to view the online instance