Jump to content

favicon link in css file


rlmEEna

Recommended Posts

I'm not sure all browsers look for it actually, so you should include<link rel="shortcut icon" type="image/x-icon" href="path_to/favicon.ico" />somewhere in the middle of the <head></head> tagset.

Link to comment
Share on other sites

Also, if you are troubleshooting this and the icon is not showing up, keep in mind it has to be a specific format. You can't just create a bitmap in paint and rename it .ico and expect that to work. You need to use a program that specifically creates icons, and it needs to be 16x16. If you have Visual Studio installed, there is a tool included with that which you can use to create an icon, or you can search for a free tool to do it.

Link to comment
Share on other sites

No, because CSS doesn't have control of such properties as favicon, while favicon is browser behaviour, not a part of the html formatting.

Link to comment
Share on other sites

No, because CSS doesn't have control of such properties as favicon, while favicon is browser behaviour, not a part of the html formatting.
If that is so how do you explain that this code makes links flash onmouseover. That has to be browser behavior.
a{color: red;}a:hover{color: yellow;}

Or maybe it doesn't?

Link to comment
Share on other sites

Links are nonetheless part of a website's content, and so css decides how to display it, although it can be varied on certain conditions.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...