Copyright © tutorialspoint.com

CSS - position

previous next


Description:

The position property is used in positioning an element. It can be used in conjunction with the top, right, bottom and left properties to position an element where you want it.

Possible Values:

DOM Syntax:

object.style.position="static";

Applies to:

All the HTML elements

Example:

Here is the example:

<style tyle="text/css">
<!--
img#lead {position: absolute;}
div.top {position: fixed; top: 0; height: 10% width: 100%;}
sup {position: relative; bottom: 0.66em;}
-->
</style>

For more detail please look into CSS Positioning.


previous next

Copyright © tutorialspoint.com