Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to find pixel position of image from sprite image [closed]

Tags:

I want to know how to find an image position(coordinates) while using sprite image for styling.

like image 879
ArK Avatar asked Sep 21 '09 05:09

ArK


People also ask

How do I position a sprite image?

Sprites are two-dimensional images which are made up of combining small images into one larger image at defined X and Y coordinates. To display a single image from the combined image, you could use the CSS background-position property, defining the exact position of the image to be displayed.

How does a sprite image work?

An image sprite is a collection of images put into a single image. A web page with many images can take a long time to load and generates multiple server requests. Using image sprites will reduce the number of server requests and save bandwidth.

How do CSS sprites work?

CSS Sprites are a collection of images that are combined into a single file that an HTML document can access. These images are then called into use within the HTML code to be displayed on the website.


1 Answers

Another, easier way to do this is through this site called Sprite Cow. I just tried it recently, and it makes things go by much faster.

like image 192
Nina Avatar answered Mar 08 '23 11:03

Nina