<!DOCTYPE html> | |
<style> | |
.outer { | |
position: relative; | |
margin-left: 100px; | |
} | |
img { | |
position: absolute; | |
top: 0; | |
left: 0; | |
width: 400px; | |
height: 400px; | |
background: green; | |
} | |
</style> | |
<body> | |
<div class="outer"> | |
<img src="data:image/gif;base64,R0lGODlhAQABAGAAACH5BAEKAP8ALAAAAAABAAEAAAgEAP8FBAA7"> | |
</div> | |
</body> |