9.4.3 Relative positioning

Chapter 9 - Visual formatting model - 9.4.3 Relative positioning

Go to the relevant page of the specification.

position-relative-003
Relative positioning with auto
The position of a relatively positioned element with left and right set to auto the values compute to zero.
position-relative-037
Relative positioning with over-constained situation and direction left-to-right
Relative positioning with left and right values and over-constrained situations when direction is left-to-right.
position-relative-038
Relative positioning with over-constained situation and direction right-to-left
Relative positioning with left and right values and over-constrained situations when direction is right-to-left.
relpos-calcs-001
Relative Positioning - auto top = -bottom
For a relatively positioned element, if 'top' is 'auto', its used value is minus the value of 'bottom'.
relpos-calcs-002
Relative Positioning - auto bottom = -top
For a relatively positioned element, if 'bottom' is 'auto', its used value is minus the value of 'top'.
relpos-calcs-003
Relative Positioning - Computing auto left = -right
For a relatively positioned element, if 'left' is 'auto', its used value is minus the value of 'right'.
relpos-calcs-004
Relative Positioning - auto right = -left
For a relatively positioned element, if 'right' is 'auto', its used value is minus the value of 'left'.
relpos-calcs-005
Relative Positioning - overconstrained left = -right (LTR)
For a relatively positioned element in an LTR containing block, if neither 'left' nor 'right' is 'auto', used value of 'right' is minus the value of 'left'.
relpos-calcs-006
Relative Positioning - overconstrained left = -right (RTL)
For a relatively positioned element in an RTL containing block, if neither 'left' nor 'right' is 'auto', used value of 'left' is minus the value of 'right'.
relpos-calcs-007
Relative Positioning - overconstrained top = -bottom
For a relatively positioned element, if neither 'top' nor 'bottom' is 'auto', used value of 'bottom' is minus the value of 'top'.