Position Demonstration: Relative

Watch the third paragraph

This is the first paragraph in the positioning demonstration. The goal is to demonstrate the differences between the four position property values: static, relative, absolute, and fixed. Every element is positioned with respect to another element, its containing element. The position of the element can be changed by changing the value of its position property.

This is the second paragraph in the positioning demonstration. The goal is to demonstrate the differences between the four position property values:static, relative, absolute, and fixed. This is a place holder for comparison.

This is the third paragraph in the positioning demonstration. This paragraph has an "id" so its position value may be changed, without affecting the other paragraphs. This paragraph's position will change based on its position value.
In this case the position is relative. It has moved down 50 px and to the right 50 px from where is was stacked below the second paragraph. See how it overlaps other content.

This is the fourth paragraph in the positioning demonstration. The goal is to demonstrate the differences between the four position property values:static, relative, absolute, and fixed. This paragraph is a placeholder for comparison.

Position Values

Valid XHTML 1.0 Strict

Valid CSS!