Relative Positioning to Achieve an Overlap of Images

Koala TurtleThis text is immediately after the image in the code. The gap between the image and the text is because "when an image is relatively positioned, the space it once occupied is preserved." (p. 407, Learning Web Design). It appears on top of the bear because the turtle was moved. Z-index can be used to change the stacking order.

Revised: November 18, 2021