Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<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