margin
English [ˈmɑ:dʒɪn] American [ˈmɑ:rdʒən]
n. Edge, range; limit; profit, surplus; (outside the version) ) of the blank
vt. Leave a margin; become the side of...; add a margin to, surround; add a margin for...
Plural: margins
bottom
英[ˈ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 the foundation
Third person singular: bottoms Plural: bottoms Present participle: bottoming Past tense: bottomed Past participle: bottomed
javascript marginBottom property syntax
Function: Set the lower margin of the element.
Syntax: Object.style.marginBottom=auto|length|%
Parameters: auto A lower margin set by the browser distance. length defines a fixed lower margin. The default value is 0. % Defines the bottom margin as a percentage based on the total height of the parent object.
javascript marginBottom property example
<html> <head> <script type="text/javascript"> function changeMargin() { document.getElementById("p1").style.marginBottom="32px"; } </script> </head> <body> <input type="button" onclick="changeMargin()" value="Change the bottom margin of a paragraph" /> <p>This is a paragraph</p> <p id="p1">This is a paragraph</p> <p>This is a paragraph</p> </body> </html>
Run instance »
Click the "Run instance" button to view the online instance