CSS Syntax
position: static|absolute|fixed|relative|initial|inherit;
Property Values
| Value | Description | Play it |
|---|---|---|
| static | Default value. Elements render in order, as they appear in the document flow | Play it » |
| absolute | The element is positioned relative to its first positioned (not static) ancestor element | Play it » |
| fixed | The element is positioned relative to the browser window | Play it » |
| relative | The element is positioned relative to its normal position, so "left:20" adds 20 pixels to the element's LEFT position | Play it » |
| initial | Sets this property to its default value. Read about initial | Play it » |
| inherit | Inherits this property from its parent element. Read about inherit |
source - http://www.w3schools.com/cssref/pr_class_position.asp
absolute는 조상요소가 relative가 아니면 fixed와 동일하게 위치됨?
'Development > CSS' 카테고리의 다른 글
| css - version update, cache flush (0) | 2014.08.27 |
|---|---|
| css - sass (0) | 2014.06.27 |
| css - z-index (0) | 2014.05.15 |
| css - position absolute center (0) | 2014.05.04 |
| css - Background-color displaying incorrectly in IE8 and IE9 (0) | 2014.04.29 |




