Skip to content

Instantly share code, notes, and snippets.

@jasonsee
Created October 11, 2012 17:44
Show Gist options
  • Save jasonsee/3874219 to your computer and use it in GitHub Desktop.
Save jasonsee/3874219 to your computer and use it in GitHub Desktop.
<style>
.product-image {
width: 50px;
height: 50px;
}
.new {
background-image: url(/some/image/new.png);
position: absolute;
display: block;
left: 3px;
top: 3px;
}
</style>
<body>
<a href="cart.html">
<img class="product-image new" src="/products/hats/3455.jpg">
</a>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment