Using CSS Image Sprites with the XP Themed TabContainer
I recently blogged about how to create a YUI TabView theme for the AjaxControlToolkit's TabContainer control. As a follow up to this entry, Peter Kassenaar asked the question: I just don't quite get how the CSS is able to extract the different (background) images from a single sprite.png file. I've googled for this, but that didn't help me much. Can you point us to a direction where this is further explained? This would give me the perfect opportunity to clean up my /images folder on the various themes of a project... In the YUI theme I created, I used a single sprite image and used CSS to pinpoint the location within the sprite for the background image of the tab panel header's. Peter is asking how I did this. To be honest, I just reverse engineered the CSS style attributes from Yahoo!'s demo site along with the exact same sprite image...