Saturday, November 14, 2009

Linked Style Sheets & Favicon?

I'm wondering if anyone could tell me how to put a favicon in a linked style sheet, (or what the code is) so that I wouldn't have to put the same code onto all the pages.





Any advice? Thanks!

Linked Style Sheets %26amp; Favicon?
The code:


%26lt;link rel="Shortcut Icon" href="http://www.yoursitename.com/favico...





I place this in the %26lt;head%26gt; tag of each page but it wouldn't hurt to try it in the style sheet. Also, make sure you save the favicon as favicon.ico and upload it to your server. The code is calling the favicon from that location on the server.





Hope that helped.
Reply:I'm not aware of any way to put a favicon in a stylesheet. You need to have a favicon link in the head section of each html page.





You could, however, use server-side includes to include a common header file that contains all of the head section links, etc. that are the same on each page.


No comments:

Post a Comment