|
|
Post a Project »
Find a Professional HTML Freelancer!
Find a Freelancer to help you with your HTML projects
| |
|
 |
|
|
|
02-11-2008, 11:39 PM
|
Favicon
|
Posts: 322
|
Im going to add a favicon to my site but I have seen so many different ways of doing it Im not sure what is the proper way to do it.
The one that I thought looked the best was this, but it didnt work  :
HTML Code:
<link rel="icon"
type="image/ico"
href="/images/favicon.ico" />
|
|
|
|
02-12-2008, 01:10 AM
|
Re: Favicon
|
Posts: 76
Name: Radley
|
I've always just added the favicon.ico to the root directory and its worked fine. I've heard of using the .htaccess file to manually do it (never done that myself).
You can also add this to each page, this is the code I remember it being:
HTML Code:
<link rel="shortcut icon" href="http://www.website.com/favicon.ico">
I think the href has to be the full link, and not relative to the site... This might depend on browser or I could just be wrong completely.
|
|
|
|
02-12-2008, 01:14 AM
|
Re: Favicon
|
Posts: 301
|
Which browser? IE or FF
I think with IE this feature is not work.
|
|
|
|
02-12-2008, 03:12 AM
|
Re: Favicon
|
Posts: 1,174
Name: Lance
Location: Virginia Beach
|
The proper way is to use both...
Code:
<link rel="icon" href="favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
__________________
Get your facts first, and then you can distort them as much as you please. - Mark Twain
Please login or register to view this content. Registration is FREE --- Please login or register to view this content. Registration is FREE
All My Sites Are Proudly Hosted @ Please login or register to view this content. Registration is FREE
|
|
|
|
02-12-2008, 03:31 AM
|
Re: Favicon
|
Posts: 1,611
Name: Michael (mik) Land
Location: England
|
Quote:
Originally Posted by kids
I think with IE this feature is not work.
|
It works.
Wikipedia is your friend. So is search for posts.
Just in case you still can't get it.
HTML Code:
<link rel="shortcut icon" href="http://example.com/favicon.ico" type="image/vnd.microsoft.icon">
Quote:
Use the appropriate resolution and color depth.
ICO: include multiple resolutions (the most commonly used being 16×16 and 32×32, with 64×64 and 128×128 sometimes used by Mac OS X) and bit-depths (most common being 4, 8, 24 bpp—i.e. 16, 256 and 16 million colors) in the file.
GIF: use 16×16 in 256 colors.
PNG: use 16×16 in either 256 colors or 24-bit.
Note: favicon.ico, when located in the document root directory, will also be found by some browsers that do not process the link elements, even if it is not linked from anywhere on your site.
|
__________________
Please login or register to view this content. Registration is FREE - Tumblog with thoughts, quotes, links, videos, images and my creations.
Please login or register to view this content. Registration is FREE - The best free web browser.
Please login or register to view this content. Registration is FREE - Firefox is now Firefail.
|
|
|
|
02-13-2008, 01:17 AM
|
Re: Favicon
|
Posts: 322
|
Ya I have favicon.icon in my root directory and I put
HTML Code:
<link rel="icon" href="favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
It works fine in FF but doesnt do anything in IE.
Any suggestions?
|
|
|
|
02-13-2008, 02:02 AM
|
Re: Favicon
|
Posts: 1,174
Name: Lance
Location: Virginia Beach
|
Can you give a link to the site in question?
__________________
Get your facts first, and then you can distort them as much as you please. - Mark Twain
Please login or register to view this content. Registration is FREE --- Please login or register to view this content. Registration is FREE
All My Sites Are Proudly Hosted @ Please login or register to view this content. Registration is FREE
|
|
|
|
02-13-2008, 02:07 AM
|
Re: Favicon
|
Posts: 42,382
Name: Chris Hirst
Location: Blackpool. UK
|
IE only sometimes uses the favicon IF you have the site/page in your favourites. Which oddly enough, is something that it gets right.
__________________
Chris. ->> Please login or register to view this content. Registration is FREE <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
|
|
|
|
02-13-2008, 03:23 AM
|
Re: Favicon
|
Posts: 1,611
Name: Michael (mik) Land
Location: England
|
It also won't show it if the icon has been made beyond the allowed. That is 16*16 px at 256 colours. More on sizes and colours at Wikipedia link.
__________________
Please login or register to view this content. Registration is FREE - Tumblog with thoughts, quotes, links, videos, images and my creations.
Please login or register to view this content. Registration is FREE - The best free web browser.
Please login or register to view this content. Registration is FREE - Firefox is now Firefail.
|
|
|
|
02-13-2008, 04:51 AM
|
Re: Favicon
|
Posts: 83
Location: UK
|
So 16 x 16px is the way to go? Does anyone use a special program to make icons or is it safe to use Photoshop or a similar equivalent?
|
|
|
|
02-13-2008, 06:04 AM
|
Re: Favicon
|
Posts: 76
Name: Radley
|
Photoshop works well, or The GIMP for a free alternative.
|
|
|
|
02-13-2008, 09:56 AM
|
Re: Favicon
|
Posts: 1,611
Name: Michael (mik) Land
Location: England
|
I don't bother using .ico extension. Faveicons work as PNG and GIF too.
__________________
Please login or register to view this content. Registration is FREE - Tumblog with thoughts, quotes, links, videos, images and my creations.
Please login or register to view this content. Registration is FREE - The best free web browser.
Please login or register to view this content. Registration is FREE - Firefox is now Firefail.
|
|
|
|
02-13-2008, 12:03 PM
|
Re: Favicon
|
Posts: 83
Location: UK
|
Ah thats pretty handy to know, I would usually save/convert to a .ico file purely because I thought it would look better and be compatible for browsers. I've always favoured .png format anyway for most web graphics, now if only I could get IE to stop displaying the wrong favourite icons in places...
|
|
|
|
02-14-2008, 01:26 AM
|
Re: Favicon
|
Posts: 322
|
I will double check make sure that it is the correct sizes....
chris if thats the case tho why do I see favicons in IE for so many other sites in the address bar, including webmaster-talk?
|
|
|
|
02-14-2008, 02:46 AM
|
Re: Favicon
|
Posts: 1,611
Name: Michael (mik) Land
Location: England
|
Quote:
|
IE only sometimes uses the favicon IF you have the site/page in your favourites. Which oddly enough, is something that it gets right.
|
Sometimes it does, sometimes it doesn't.
From the wiki:
Quote:
|
Originally, Internet Explorer only used favicons for bookmarks (for instance MSIE 6.0), which created a minor privacy concern in that a site owner could tell how many people had bookmarked their site by checking the access logs to see how many people downloaded the favicon.ico file. However, since newer versions of Internet Explorer (e.g. 7.0) and most other browsers also display the favicon in the address bar on every visit, this is becoming less of an issue.
|
__________________
Please login or register to view this content. Registration is FREE - Tumblog with thoughts, quotes, links, videos, images and my creations.
Please login or register to view this content. Registration is FREE - The best free web browser.
Please login or register to view this content. Registration is FREE - Firefox is now Firefail.
Last edited by Mooofasa; 02-14-2008 at 03:06 AM..
|
|
|
|
02-14-2008, 02:57 AM
|
Re: Favicon
|
Posts: 1,584
Location: Kokkola, Finland
|
of course if you want icons at more than one size (say for desktop use too) then you should use the the capabilties if .ico http://en.wikipedia.org/wiki/ICO_%28...file_format%29
does gif or png work in as many browsers as ico??
|
|
|
|
02-14-2008, 03:06 AM
|
Re: Favicon
|
Posts: 1,611
Name: Michael (mik) Land
Location: England
|
It's worked for me in Opera 9, FF 2, IE 7 and Safari 3. I haven't tested in Amaya because I have never recieved a page view from that browser.
To be safe, I would suggest using ICO, but if you don't care about non-supporting browsers showing something minor (like I don't) then use PNG/GIF (PNG favicon is up to 24bit).
__________________
Please login or register to view this content. Registration is FREE - Tumblog with thoughts, quotes, links, videos, images and my creations.
Please login or register to view this content. Registration is FREE - The best free web browser.
Please login or register to view this content. Registration is FREE - Firefox is now Firefail.
|
|
|
|
02-14-2008, 03:11 AM
|
Re: Favicon
|
Posts: 1,584
Location: Kokkola, Finland
|
"(PNG favicon is up to 24bit)." so no alpha transparency then 
|
|
|
|
02-14-2008, 03:14 AM
|
Re: Favicon
|
Posts: 1,611
Name: Michael (mik) Land
Location: England
|
Quote:
Originally Posted by davemies
"(PNG favicon is up to 24bit)." so no alpha transparency then 
|
Testing done. Opera 9, FF 2 and Safari 3 (win) all show the icon at 24 bits and 32 bits.
IE 7 doesn't! So the markup I used was:
HTML Code:
<link rel="icon" type="image" href="test.png">
To get it working in IE I had to use an ICO format.
HTML Code:
<link rel="shortcut icon" type="image/vnd.microsoft.icon" href="test.ico">
__________________
Please login or register to view this content. Registration is FREE - Tumblog with thoughts, quotes, links, videos, images and my creations.
Please login or register to view this content. Registration is FREE - The best free web browser.
Please login or register to view this content. Registration is FREE - Firefox is now Firefail.
Last edited by Mooofasa; 02-14-2008 at 05:09 AM..
|
|
|
|
|
« Reply to Favicon
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|