javascript bottom property


  Translation results:

英[ˈbɒtəm] US[ˈbɑ:təm]

n. Bottom; end; hip; end

adj. Bottom of

vt. Bottom; measurement Deep and shallow; 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 bottom propertysyntax

Function: Set the offset between the lower margin boundary of the positioned element and the lower boundary of its containing block.

Syntax: Object.style.bottom=auto|%|length

Comments: If the value of the "position" attribute is "static" , then setting the "bottom" attribute will have no effect.

javascript bottom propertyexample

<html>
<head>
<style type="text/css">
input
{
position:absolute;
}
</style>
<script type="text/javascript">
function setBottomEdge()
{
document.getElementById("b1").style.bottom="100px";
}
</script>
</head>
<body>

<input type="button" id="b1" onclick="setBottomEdge()"
value="Set bottom edge to 100 px" />

</body>
</html>

Run instance »

Click the "Run instance" button to view the online instance

Popular Recommendations

Home

Videos

Q&A