I need to increase the size of some sprites in a WordPress Footer, and I can't figure out a good way to do it.
- I tried tweaking the
background-size
as several threads recommended, but had no outcomes worth mentioning. - I used
transform: scale(2)
which worked, but that looked terrible. (worst than normal pixelation)
HTML:
<div>
<div class="sprites sprite1"></div>
<div class="sprites sprite2"></div>
<div class="sprites sprite3"></div>
</div>
CSS:
.sprites {
background-image: url('http://static.tumblr.com/6az34or/hTwmc1qw7/socialmedia-sprites.png');
}
.sprite1 {
background-position: 0px 0px;
height: 25px;
width: 25px;
}
<!-- etc. -->
jsFiddle: http://jsfiddle.net/Labb6da9/