Jump to content

icon white background problem in IE


PHPSuperNewb

Recommended Posts

Hello everyone,

 

I have no idea if this is the right forum to ask this so please move this if nessecary.

I have a problem with icons being displayed in my url bar, tabs and favorites.

 

I've created an icon with a transparant background using alpha channels.

I did this so that the "famous" white background behind an icon gets removed.

The problem however is that my icon does get displayed properly in firefox but not in internet explorer.

 

I've put the .png I used to create the .ico and 2 pictures of how the

icon looks inside firefox and internet explorer in the attachments.

As you can see in internet explorer it displays a white background however in firefox it doesn't.

 

My .ico file is converted through an online png to ico converter and is 16x16.

 

I used the following html to add the icon to my url and tab bar:

        <link rel="icon" href="templates/afbeeldingen/blood.png" type="image/png"/>
        <link rel="shortcut icon" href="templates/afbeeldingen/blood.ico" />

 

I've read somewhere that putting the <link rel="icon"> infront of the <link rel="shortcut icon"> would make it so that it'll work for different browsers. I'm not sure about this. If anyone could explain to me what I'm doing wrong I highly appreciate it.

 

[attachment deleted by admin]

Link to comment
Share on other sites

ok, so for some reason as long as my icon was called blood.ico inside my folder it would have a white background. I changed it to anothername.ico inside that folder and now all of a sudden it works in both browsers :S?

Really strange but solved?  :confused:

 

I really don't get it :S

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.