Posted By


lister on 07/05/11

Tagged


Statistics


Viewed 487 times
Favorited by 0 user(s)

Basic css sprite button


/ Published in: CSS
Save to your folder(s)

Using a sprite is a good idea as it lowers the HTTP-Request. Here is a simple example on how to use this technique. Using a sprite, we can create the hover effect by changing the position of the background image down to a certain height to show the background to the button on hover. A simple yet effective technique. The drawback of using multiple sprites on an image is that you cannot repeat it.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.