The Quest for the Icon “Thingy”
A question I get asked a lot by die IM posse is how to “get that little icon in the tab on Firefox” so after giving these instructions quite few times I have decided to put a post on here so that I can just direct the next person directly to a complete guide to installing a favicon (Yep, that’s what the little icon is called
)
So, firstly we have to create this icon that we want to use, and the best way to do this would be with a graphical application like Photoshop or Paint Shop Pro and create an image with the dimension 32px x 32px. You can also have transparent parts in your favicon, just remember to save it in PNG8 format for that.
OK, so now you got your creative on and you have a favicon that you absolutely love! Now you just need to get it to the .ico format and for that I am going to direct you to a online converter at http://tools.dynamicdrive.com/favicon/
On there you basically browse for the file, say “convert” and tada! You have a favicon.ico file and even ‘n preview of what it will look like.
All that is left to do is to ad the file to your website and that is also a pretty easy thing to do. Firstly upload the favicon.ico file into your root folder of your site. (This is the same place where you can find you index file)
All you need to do now is to enter the following line into the head section of your site:
<link rel=”shortcut icon” href=”/favicon.ico” type=”image/x-icon” />
There you go, that was pretty easy hey.. Your site can now boast with his/her own little piece of site bling!
Posted in HTML, This and That | No Comments »
The first thing we need to do is to create a stylesheet that will only be read by IE6 or earlier and Microsoft actually provided for this to be doable when they added conditional comments to their browsers. We will call this stylesheet “oldie.css” and we call this in the header of our page, wrapped in the conditional comments like this:
You can now create a container at the top of your page with some sort of message in it, telling your visitors to go get a newer browser to stop seeing the notification.