Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Old 02-11-2008, 11:39 PM Favicon
Truly's Avatar
Ultra Talker

Posts: 322
Trades: 0
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" />
Truly is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-12-2008, 01:10 AM Re: Favicon
RadGH's Avatar
Skilled Talker

Posts: 76
Name: Radley
Trades: 0
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.
RadGH is offline
Reply With Quote
View Public Profile
 
Old 02-12-2008, 01:14 AM Re: Favicon
kids's Avatar
Ultra Talker

Posts: 301
Trades: 0
Which browser? IE or FF

I think with IE this feature is not work.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
kids is offline
Reply With Quote
View Public Profile Visit kids's homepage!
 
Old 02-12-2008, 03:12 AM Re: Favicon
Moxxnixx's Avatar
King Spam Talker

Posts: 1,174
Name: Lance
Location: Virginia Beach
Trades: 0
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

Moxxnixx is offline
Reply With Quote
View Public Profile Visit Moxxnixx's homepage!
 
Old 02-12-2008, 03:31 AM Re: Favicon
Mooofasa's Avatar
Defies a Status

Posts: 1,611
Name: Michael (mik) Land
Location: England
Trades: 0
Quote:
Originally Posted by kids View Post
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.
Mooofasa is offline
Reply With Quote
View Public Profile Visit Mooofasa's homepage!
 
Old 02-13-2008, 01:17 AM Re: Favicon
Truly's Avatar
Ultra Talker

Posts: 322
Trades: 0
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?
Truly is offline
Reply With Quote
View Public Profile
 
Old 02-13-2008, 02:02 AM Re: Favicon
Moxxnixx's Avatar
King Spam Talker

Posts: 1,174
Name: Lance
Location: Virginia Beach
Trades: 0
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

Moxxnixx is offline
Reply With Quote
View Public Profile Visit Moxxnixx's homepage!
 
Old 02-13-2008, 02:07 AM Re: Favicon
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,382
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
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?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 02-13-2008, 03:23 AM Re: Favicon
Mooofasa's Avatar
Defies a Status

Posts: 1,611
Name: Michael (mik) Land
Location: England
Trades: 0
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.
Mooofasa is offline
Reply With Quote
View Public Profile Visit Mooofasa's homepage!
 
Old 02-13-2008, 04:51 AM Re: Favicon
Skilled Talker

Posts: 83
Location: UK
Trades: 0
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?
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
graham08 is offline
Reply With Quote
View Public Profile Visit graham08's homepage!
 
Old 02-13-2008, 06:04 AM Re: Favicon
RadGH's Avatar
Skilled Talker

Posts: 76
Name: Radley
Trades: 0
Photoshop works well, or The GIMP for a free alternative.
RadGH is offline
Reply With Quote
View Public Profile
 
Old 02-13-2008, 06:27 AM Re: Favicon
Super Moderator

Posts: 1,584
Location: Kokkola, Finland
Trades: 1
i design in fireworks or photoshop then export to bmp or png and use this
http://tools.dynamicdrive.com/favicon/
davemies is offline
Reply With Quote
View Public Profile Visit davemies's homepage!
 
Old 02-13-2008, 09:56 AM Re: Favicon
Mooofasa's Avatar
Defies a Status

Posts: 1,611
Name: Michael (mik) Land
Location: England
Trades: 0
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.
Mooofasa is offline
Reply With Quote
View Public Profile Visit Mooofasa's homepage!
 
Old 02-13-2008, 12:03 PM Re: Favicon
Skilled Talker

Posts: 83
Location: UK
Trades: 0
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...
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
graham08 is offline
Reply With Quote
View Public Profile Visit graham08's homepage!
 
Old 02-14-2008, 01:26 AM Re: Favicon
Truly's Avatar
Ultra Talker

Posts: 322
Trades: 0
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?
Truly is offline
Reply With Quote
View Public Profile
 
Old 02-14-2008, 02:46 AM Re: Favicon
Mooofasa's Avatar
Defies a Status

Posts: 1,611
Name: Michael (mik) Land
Location: England
Trades: 0
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..
Mooofasa is offline
Reply With Quote
View Public Profile Visit Mooofasa's homepage!
 
Old 02-14-2008, 02:57 AM Re: Favicon
Super Moderator

Posts: 1,584
Location: Kokkola, Finland
Trades: 1
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??
davemies is offline
Reply With Quote
View Public Profile Visit davemies's homepage!
 
Old 02-14-2008, 03:06 AM Re: Favicon
Mooofasa's Avatar
Defies a Status

Posts: 1,611
Name: Michael (mik) Land
Location: England
Trades: 0
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.
Mooofasa is offline
Reply With Quote
View Public Profile Visit Mooofasa's homepage!
 
Old 02-14-2008, 03:11 AM Re: Favicon
Super Moderator

Posts: 1,584
Location: Kokkola, Finland
Trades: 1
"(PNG favicon is up to 24bit)." so no alpha transparency then
davemies is offline
Reply With Quote
View Public Profile Visit davemies's homepage!
 
Old 02-14-2008, 03:14 AM Re: Favicon
Mooofasa's Avatar
Defies a Status

Posts: 1,611
Name: Michael (mik) Land
Location: England
Trades: 0
Quote:
Originally Posted by davemies View Post
"(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..
Mooofasa is offline
Reply With Quote
View Public Profile Visit Mooofasa's homepage!
 
Reply     « Reply to Favicon

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 1.38947 seconds with 12 queries