www.webdeveloper.com
Results 1 to 3 of 3

Thread: Favicon in IE7

  1. #1
    Join Date
    Dec 2005
    Posts
    4

    Favicon in IE7

    HTML Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <link rel="icon" href="favicon.ico" type="image/x-icon">
    <link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
    </head>
    
    <body>
    test da af 
    </body>
    </html>
    Here is the code, it is to display a simple Favicon.ico beside the address bar in IE/FF .. But in IE i am not able to show it. However, FireFox is showing the Favicon.

    Can you people help me in solving it ?

    I have tried to put PNG image as well with type="image/png" .. but no use.

    the image is placed in the same directory.

    NOTE: FIREFOX IS SHOWING THE FAVICON WITH THIS CODE.

  2. #2
    Join Date
    Nov 2006
    Location
    Springfield, MO
    Posts
    1,541
    Try removing the first reference the favicon and then reference the second with an absolute path. IE 7 has trouble with favicon's and relative file paths.
    Ryan Butler

    Ryan Butler.org

  3. #3
    Join Date
    Dec 2005
    Posts
    4
    Quote Originally Posted by ryanbutler
    Try removing the first reference the favicon and then reference the second with an absolute path. IE 7 has trouble with favicon's and relative file paths.
    Tried with the change instruction but it is not working .. the new code is

    HTML Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <link rel="shortcut icon" href="E:\Projects\temp\favicon.ico" type="image/x-icon">
    </head>
    
    <body>
    Test Favicon IE 7 
    </body>
    </html>
    Any suggestions ??

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles