Hola, tengo este css que me ayuda a cojer las imagenes dentro de un png:
.meme1{
width: 120px;
height: 110px;
background: url('https://fbcdn-dragon-a.akamaihd.net/hphotos-ak-ash3/851586_127344860783644_1223805928_n.png');
background-repeat: no-repeat;
}
.meme1.mini{
background-size: 230px;
width: 52px;
height: 50px;
display: inline-block
}
.meme1.c1{
background-position-x: 0px;
}
.meme1.c2{
background-position-x: -135px;
}
.meme1.c2.mini{
background-position-x: -60px;
}
.meme1.c3{
background-position-x: -270px;
}
.meme1.c3.mini{
background-position-x: -120px;
}
.meme1.c4{
background-position-x: -405px;
}
.meme1.c4.mini{
background-position-x: -180px;
}
.meme1.l1{
background-position-y: 7px;
}
.meme1.l1.mini{
background-position-y: 2px;
}
.meme1.l2{
background-position-y: -130px;
}
.meme1.l2.mini{
background-position-y: -60px;
}
.meme1.l3{
background-position-y: -265px;
}
.meme1.l3.mini{
background-position-y: -120px;
}
.meme1.l3{
background-position-y: -405px;
}
.meme1.l3.mini{
background-position-y: -180px;
}
.meme1.l4{
background-position-y: -548px;
}
.meme1.l4.mini{
background-position-y: -240px;
}
.meme1.l5{
background-position-y: -685px;
}
.meme1.l5.mini{
background-position-y: -300px;
}
.meme1.l6{
background-position-y: -821px;
}
.meme1.l6.mini{
background-position-y: -360px;
}
.meme1.l7{
background-position-y: -957px;
}
.meme1.l7.mini{
background-position-y: -420px;
}
.meme1.l8{
background-position-y: -1095px;
}
.meme1.l8.mini{
background-position-y: -480px;
}
de esta manera puedo cojer una imagen asi:
<div class="meme1 c1 l1"></div>
Pero no me funciona en firefox, hay alguna manera que funcione sin tener que ponerlo con background-position ?