Blue block that is absolutely positioned.

Yellow block that is relatively positioned, and given a z-index of 4.

Red block that has fixed positioning.