<!DOCTYPE html> | |
<style> | |
#cover { | |
width: 100px; | |
height: 100px; | |
background-color: green; | |
position: absolute; | |
left: 0; | |
top: 0; | |
} | |
div { | |
display: inline-block; | |
} | |
</style> | |
<p>There should be 2 green squares and a green rectangle below and no red.</p> | |
<div style="position: absolute"> | |
<div id="cover"></div> | |
<div id="cover" style="left: 204px; top: 100px;"></div> | |
<div id="cover" style="left: 558px; top: 0px; height: 200px; width: 50px;"></div> | |
</div> |