Take the 2-minute tour ×
Graphic Design Stack Exchange is a question and answer site for Graphic Design professionals, students, and enthusiasts. It's 100% free, no registration required.

I was reading this to understand sprites

http://css-tricks.com/css-sprites/

The author says "Sprites are for graphics that are just single blocks. " What does this mean? One thing I have read is to make a sprite for images which are continuous on a web page.

thanks

share|improve this question
    
Note that the statement only applies to the CSS methods the author is talking about. Tiled backgrounds are in point of fact a single "sprite" of arbitrary size duplicated multiple times. The vast majority of computer game backgrounds are tiled from sprite sheets, but these require a copy or Blt method which is not available AFAIK in CSS, and if it is, it is not advisable IMO. –  horatio May 9 '13 at 21:21

1 Answer 1

It means they cannot be used as a pattern. Take a look at the small print under that paragraph:

*OK, they kinda can do repeating, but it's a little trickier and can only work one-dimensionally (x or y).

So, sprites should be used for graphics that are only displayed once (such as an icon). They should not be used for a gradient pattern intended to be repeated vertically or horizontally and especially should not be used for a tile-able background

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.