The position Property : position « Layout « HTML / CSS






The position Property

 


Value       Meaning

static      same as normal flow, and is the default.

relative    box can be offset from where it would be in normal flow.

absolute    positioned exactly from the position in the containing element using x and y coordinates from the top-left corner of the containing element.

fixed       position is calculated from a fixed point; in the case of the browser this point is the top-left corner of a browser window and does not change position if the user scrolls the window. 

 








Related examples in the same category

1.CSS provides six positioning models for positioning an element: static, absolute, fixed, relative, float, and relative float.
2.Relative position image
3.position descendant
4.Normal Flow