Mobile app version of vmapp.org
Login or Join
Alves566

: What's the meaning of saying CSS sprites are "for graphics that are just single blocks"? I was reading this to understand sprites http://css-tricks.com/css-sprites/ The author says "Sprites are

@Alves566

Posted in: #Css #Sprite

I was reading this to understand sprites
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

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Alves566

1 Comments

Sorted by latest first Latest Oldest Best

 

@Michele215

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

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme