CSS Syntax

position: static|absolute|fixed|relative|initial|inherit;

Property Values

ValueDescriptionPlay it
staticDefault value. Elements render in order, as they appear in the document flowPlay it »
absoluteThe element is positioned relative to its first positioned (not static) ancestor elementPlay it »
fixedThe element is positioned relative to the browser windowPlay it »
relativeThe element is positioned relative to its normal position, so "left:20" adds 20 pixels to the element's LEFT positionPlay it »
initialSets this property to its default value. Read about initialPlay it »
inheritInherits 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
Posted by linuxism
,