We're a community of 1077K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,076,201 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

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.

2
Contributors
1
Reply
1 Hour
Discussion Span
1 Year Ago
Last Updated
2
Views
bibiki
Posting Whiz
368 posts since Nov 2009
Reputation Points: 42
Solved Threads: 31
Skill Endorsements: 0

It sounds like you are referring to using CSS Sprites.

JorgeM
Industrious Poster
4,018 posts since Dec 2011
Reputation Points: 297
Solved Threads: 548
Skill Endorsements: 115

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page rendered in 0.0573 seconds using 2.64MB