CSS (sass) clear cache for sprites!
// Global cacheBust variable
$cacheBust: '?v=20130314';
// sprite variables
$sprite-items: 'img/sprite-items.png'+$cacheBust;
$sprite-btns: 'img/sprite-btns.png'+$cacheBust;
.item {
background: url($sprite-items) no-repeat 0 0;
}
.btn {
background: url($sprite-btns) no-repeat 0 0;
}
.btn-inverse {
background: url($sprite-btns) no-repeat 0 -30px;
}
Written by Alex Meijer
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Css
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#