CSS Sprite techniques, css background or img's clip

Posted by Viktor on Stack Overflow See other posts from Stack Overflow or by Viktor
Published on 2010-05-05T02:14:38Z Indexed on 2010/05/05 2:18 UTC
Read the original article Hit count: 966

Filed under:
|

Hi,

There are two image sprite techniques. The "classic" version uses the background and the background-position css properties. (as it's described here http://www.alistapart.com/articles/sprites)

The "second" version uses an image tag and it's clip css property. (http://css-tricks.com/css-sprites-with-inline-images/)

My question is that are there advantages of using the "second" version over the "classic" version?

thanks and best, Viktor

© Stack Overflow or respective owner

Related posts about css

Related posts about css-sprites