css bottom property


  Translation results:

bottom

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

n.Bottom; end; hip; end

adj. Bottom of

vt. To install the bottom; to measure the depth; to find out the truth

vi. To reach the bottom; to establish the foundation

css bottom propertysyntax

Function:The bottom attribute specifies the bottom edge of the element.

Description: This attribute defines the offset between the lower margin boundary of the positioned element and the lower boundary of its containing block. If the value of the "position" property is "static", then setting the "bottom" property has no effect.

Note: All major browsers support the bottom attribute. The attribute value "inherit" is not supported in any version of Internet Explorer (including IE8).

css bottom propertyexample

<html>
<head>
<style type="text/css">
img.ex1
{
position:absolute;
bottom:0px;
}
img.ex2
{
position:relative;
bottom:-100px;
}
</style>
</head>
<body>
<img class="ex1" src="http://img.php.cn/upload/article/000/005/656/5af270fd37755429.jpg" />
<h1>This is a heading</h1>
<img class="ex2" src="http://img.php.cn/upload/article/000/005/656/5af270fd37755429.jpg" />
</body>
</html>
Run instance »

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

Popular Recommendations

Home

Videos

Q&A