Skip to content

Instantly share code, notes, and snippets.

@OrKoN
Created November 22, 2014 18:52
Show Gist options
  • Save OrKoN/a1952a3a506b34a28561 to your computer and use it in GitHub Desktop.
Save OrKoN/a1952a3a506b34a28561 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
<style id="jsbin-css">
#divWithBackground {
width: 256px;
height: 256px;
background: url('http://js-for.ninja/img/article1/sprite.jpg') 0 -256px;
}
</style>
</head>
<body>
<div id="divWithBackground">
</div>
<script id="jsbin-source-css" type="text/css"> #divWithBackground {
width: 256px;
height: 256px;
background: url('http://js-for.ninja/img/article1/sprite.jpg') 0 -256px;
}</script>
</body>
</html>
#divWithBackground {
width: 256px;
height: 256px;
background: url('http://js-for.ninja/img/article1/sprite.jpg') 0 -256px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment