<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
.squashed { | |
height: 40px; | |
width: 40px; | |
background-color: lightgreen; | |
position: absolute; | |
top: 90px; | |
} | |
.composited { | |
position: absolute; | |
margin-top: 5px; | |
height: 100px; | |
width: 100px; | |
background-color: lightblue; | |
} | |
#target3 { | |
background-color: green; | |
} | |
</style> | |
</head> | |
<body> | |
<div id="target2" class="second composited"> | |
</div> | |
<div id="target3" class="squashed"></div> | |
</body> | |
</html> |