Secure SmartSpace
powered by SmartSpace

Using CSS Sprites in SmartSpace


Return to Help file list

How to Create and Use Sprites in SmartSpace

Sprites are multi element images whose elements can be each used separately with a custom style sheet (css) file.

For example, when an image menu item is hovered over with a mouse, it may change color. So the two versions of the image are stored in the same file, the original colored image and the hover image.

These two images make up the sprite image.

Why Use Sprites?

What  Are Sprites Used For?

Sprites are used for four main things in Smartspace

How Does It Work

The CSS file takes the whole image, and positions it so that the user can only see a portion of that image. This is why sprites can only be used in elements that have a fixed size.

How Are Sprites Made

Sprites for menu items

Sprites for Backrounds (borders and other elements)

Smartspace technical staff can advise whether or not you can use sprites for backgrounds on your website. Because not all elements are fixed size, it is not always possible to use sprites for this purpose.

We will provide directions on what needs to happen should you be able to utilise sprites for backgrounds.

Here are a few basic thiings to remember about using sprites for backgrounds.

Read this post here for more info on CSS sprites

Close Window