tags:

views:

120

answers:

2

Hello,

I've been learning about CSS Sprites. I have been skeptical because cross-browser compatibility is a high priority for my site. Don't CSS sprites cause problems with this considering they rely on positioning? IE6 is specifically a concern for me.

Thank you!

+1  A: 

No that's the beauty of CSS Sprites, they work well across all modern browsers, including IE6. The only time you may have an issue is if you're using transparent PNG's, but there are fixes for that on IE6 as well. I highly recommend using them for small images. They're especially useful for things like button states, etc. where you have Up, Down, Over, etc.

Shawn Steward
:-D I should have down voted modern+IE6 ?!
Itay Moav
haha... unfortunately it's modernly used still :(
Shawn Steward
+4  A: 

It is supposed to work in all browsers, including IE6. Although a while back I've experienced problems with it in IE6 in a very specific circumstance which I unfortunately don't recall in detail anymore. The symptom was that the sprite was wrongly positioned, but I at least recall that it was an easy fix. So whenever you run into problems, just ask a question here and we'll help. I can recommend IETester to test the IE6 behaviour.

For the case you're still interested, I'd recommend you this article.

BalusC
+1 for mention of IETester - great tool!
Shawn Steward