XF 2.0 How i can find correctly Sprite Position (Smilies)

Each image is 44x44, so find icon index, multiply it by 44 to get position. So if you are looking at icon near 350, its 8th icon and its position is 8*44 = 352

edit: forgot that image is scaled down to 22x22 using background-size, so position is actually multiplied by 22, not 44. So 8th icon value is 176:
Code:
background-position: 0 -176px;
 
Back
Top Bottom