I am working on some existing code where they use css sprites. There is a large image, and it is used to display all images.
These are mainly elements Ul and li. Each li element uses this image and uses a background position.
I understood css sprites completely, its for better performance. But it is only unclear why the positions x and y begin with negative fields. Most sprite images get extraction using something like
-540px -30px like this
I watched this image in the browser, and it displays correctly, and they should with 0.0 correctly.
I'm missing something here
source
share