tags:

views:

88

answers:

3

I am able to use favicons if I copy one from another site and test. But my own doesn't work in IE8/Chrome. Mine is a 32x32 24bit icon created by Visual Studio. I always seem to have problems getting icons working right, what should I use? I thought I could have images up to 64x64...

A: 

The wikipedia page on favicon contains a lot of information.

The support for favicons differ a bit from browser to browser, and there is no guarantee that the favicon will work on any given system. Sometimes the browser just ignores it for no apparent reason.

To get the widest browser support, you should use the .ico format. There is a compatibility chart on the wikipedia page that tells you how widely supported each format is.

Guffa
Yes I read it and decided to use ICO. But the ICO I have won't work... I can't find what color depths are supported. Should 24bit 64x64 work?
John
Use http://converticon.com/ to be sure that it's really an ICO (and it needs to be 32x32).
Intelekshual
+2  A: 

See this site for instructions for creating a favicon.ico - it needs to be 16*16, not 32*32 (though you can have a composite .ico with both sizes).

I have created composite .ico files with several sizes, so they appear correctly on the browser and the desktop.

Oded
+1  A: 

First, just to be safe, convert your original icon to an .ico using this converter.

Then, for cross-browser compatibility (specifically Internet Explorer), use:

<link rel="shortcut icon" href="http://www.yoursite.com/youricon.ico" />

Most browsers are smart enough to use any PNG/ICO named favicon.ico located in the root of your site, but this is not always reliable.

Intelekshual