Copyright © tutorialspoint.com

CSS - bottom

previous next


Description:

The bottom property defines an offset of the bottom edge of an absolutely positioned element from the bottom edge of its positioning context, or the vertical distance which a relatively positioned element will be displaced.

Possible Values:

Applies to:

All the HTML positioned element.

DOM Syntax:

object.style.bottom="2px";

Example:

Here is the example which shows effect of this property:

<p style="position:absolute; bottom:100px;">
This line will be positioned 100px above from the 
bottom edge of this window.
</p>

To Become more comfortable - Do Online Practice


previous next

Copyright © tutorialspoint.com