Assignment029j3

Positioning - Relative

Not only can we use divs to create the structure (layout) of our page, we can use divs to create elements that are placed at specific locations on a page relative to their normal position.

For example, I can specify CHANGES to top, bottom, right, and left pixel position for relative divs. That element will be moved from its current position based on the values given to top, bottom, right, and left. Unfortunately, they only visually move. The occupied space is still "occupied." So, they're mostly useless.

Use CSS to move these elements around from their normal position. What will happen if you set the red div's top to -15px? What will happen if you set the black div's left to -20px?Well, they get moved from where they are supposed to be, but they still occupy "space."

Experiment and understand.

To get credit, You must use images with transparent backgrounds!

Example