css - Placing an image from the sprite in the specific position -


let's have sprite lots of icons. want place 1 of icons in specific position on div, e.g. 15px right side , 20px top. previously, when had single image file used following code:

background: white url(./imgs/some/icon.png) no-repeat 91% 47%; 

now image in sprite can access using

background-position: 0 -471px; 

but see there no place add current 91% 47%. there kind of workaround? it's possible use css3 in project if helps.

thanks!

would able add <div>, give correct background, , absolute position needs be? i'm thinking background-position percentages out when use sprite sheet.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -