Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CSS sprites and IE6

Does IE6 support css-sprites?

like image 310
Shivanand Avatar asked Aug 04 '09 13:08

Shivanand


3 Answers

Yes IE 6 supports sprites but doesn't support 24 bit PNG transparency.

I use this css hack for giving IE < 7 a gif file and everything else a 24 bit png with transparency.

background-image:url(/images/sprites/icons-sprite.png);
_background-image:url(/images/sprites/icons-sprite.gif); /* IE<7 gets the crappy icons */
like image 59
Ryu Avatar answered Oct 04 '22 12:10

Ryu


You can also use Glue http://gluecss.com/ It's an open-source command line tool to generate sprites.

like image 28
Jorge Bastida Avatar answered Oct 04 '22 14:10

Jorge Bastida


CSS sprites is a general solution using backround-position, which is avaible even in IE5.

A good tutorial about them is located here: http://www.smashingmagazine.com/2009/04/27/the-mystery-of-css-sprites-techniques-tools-and-tutorials/

like image 43
Thinker Avatar answered Oct 04 '22 14:10

Thinker