Cascading Style Sheets/Sprites

Use background-position:0 -## where ## is equal to the y-coordinate of the first pixel of the desired area to reposition sprites

Use the background-position property to change the hover state of links with background images using CSS sprites

Use background-image instead of the background shorthand when using ID selectors to avoid inadvertently overriding class-based background-position changes for CSS sprites

Use the clip property on image tags to do foreground spriting

Make sure class selectors aren't inadvertently overridden by default values of ID selectors, especially background-position changes for sprites, by dividing the properties of ID selectors using longhand notation


Extending CSS Spriting

CSS Sprites are Stupid

  This article uses material from the Wikipedia page available here. It is released under the Creative Commons Attribution-Share-Alike License 3.0.


Manage research, learning and skills at IT1me. Create an account using LinkedIn to manage and organize your IT knowledge. IT1me works like a shopping cart for information -- helping you to save, discuss and share.

  Contact Us  |  About |  IT Training & References |  IT Careers |  IT Hardware |  IT Software |  IT Books