<!DOCTYPE html> | |
<link rel="author" href="mailto:atotic@google.com"> | |
<style> | |
body { | |
margin: 50px; | |
font-size: 0; | |
} | |
.outline { | |
outline-style: auto; | |
} | |
#container { | |
width: 200px; | |
height: 200px; | |
} | |
#target { | |
display: inline-block; | |
width: 100px; | |
height: 100px; | |
background: #EEE; | |
transform: translate(120px, 120px); | |
} | |
.spacer { | |
display: inline-block; | |
height: 50px; | |
width: 200px; | |
} | |
</style> | |
<!-- --> | |
<div id="container" class="outline"> | |
<div class="spacer"></div> | |
<div id="target"></div> | |
</div> |