1,105,633 Community Members

displaying half an image

Member Avatar
bibiki
Posting Whiz
393 posts since Nov 2009
Reputation Points: 18 [?]
Q&As Helped to Solve: 31 [?]
Skill Endorsements: 0 [?]
 
0
 

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.

Member Avatar
JorgeM
IT Addict
6,418 posts since Dec 2011
Reputation Points: 581 [?]
Q&As Helped to Solve: 963 [?]
Skill Endorsements: 172 [?]
Moderator
Featured
Sponsor
 
0
 

It sounds like you are referring to using CSS Sprites.

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