<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
</head> | |
<style> | |
html, body { | |
margin: 0; | |
} | |
#destination { | |
width: 100px; | |
height: 100px; | |
background-color: red; | |
} | |
#img { | |
position: relative; | |
top: 0px; | |
left: 0px; | |
width: 32px; | |
height: 32px; | |
background-image: url("../2x2.png"); | |
background-position: -32px -32px; | |
background-size: 64px 64px; | |
background-repeat: no-repeat; | |
} | |
</style> | |
<body> | |
<div id="destination"> | |
<div id="img"><div> | |
</div> | |
</body> | |
</html> |