displaying half an image


hey there,
I have some images that I want to use instead of checkboxes in an application I am building.

The images consist of two images. Yes, the two images inside an image are the same except for the background color. One color would indicate when the option the image stands for is selected, and the other for when not selected.

I believe I need to use css to do this. Could someone please tell me how I do this using css?

thank you in advance.


It sounds like you are referring to using CSS Sprites.

Isn't it about time forums rewarded their contributors?

Earn rewards points for helping others. Gain kudos. Cash out. Get better answers yourself.

It's as simple as contributing editorial or replying to discussions labeled or OP Kudos

This article has been dead for over six months: Start a new discussion instead
Start New Discussion
Tags Related to this Article