favicon & css

favicon & css

am 07.08.2005 14:26:53 von Paul Goodwin

I have a client who wishes one of these 'favicons' on every page of a fairly
large site, what I'm wondering, in order to save time, is if it's possible
to add the icon via the external stylesheet, instead of laboriously adding
it to each page.

Thank you :)

Paul

Re: favicon & css

am 07.08.2005 17:41:39 von a.nony.mous

Paul Goodwin wrote:
> I have a client who wishes one of these 'favicons' on every page of
> a fairly large site, what I'm wondering, in order to save time, is
> if it's possible to add the icon via the external stylesheet,
> instead of laboriously adding it to each page.

No way that I know of to use CSS for a favicon. You would have to add
the following in the section of the pages. Use correct path, of
course:




It must also be a 16x16 true icon file.

This would be easy if the stuff in the were added to each page
by a script, as I do; one file for the whole site.

Internet Explorer users will not see it unless they bookmark the site,
and then only until the cache is cleared.

--
-bts
-This space intentionally left blank.

Re: favicon & css

am 07.08.2005 18:33:11 von tpeters

"Beauregard T. Shagnasty" wrote in message
news:TYpJe.5615$EX.4657@twister.nyroc.rr.com...
> Paul Goodwin wrote:
>> I have a client who wishes one of these 'favicons' on every page of
>> a fairly large site, what I'm wondering, in order to save time, is
>> if it's possible to add the icon via the external stylesheet,
>> instead of laboriously adding it to each page.
>
> No way that I know of to use CSS for a favicon. You would have to add the
> following in the section of the pages. Use correct path, of course:
>
>
>
>
> It must also be a 16x16 true icon file.
>
> This would be easy if the stuff in the were added to each page by a
> script, as I do; one file for the whole site.
>
> Internet Explorer users will not see it unless they bookmark the site, and
> then only until the cache is cleared.

Yes. I was going to suggest putting the whole top area of the page
(generally meta, logo headers, menu) in an include - either ssi or php. You
could include the favicon bit in that.

--Tina
--
http://www.AxisHOST.com - Serving the web since 1997
Very Generous Cpanel Hosting & Fully Managed Servers
Newsgroup 20% Discount Code: newsgroup

Re: favicon & css

am 07.08.2005 18:40:08 von Benjamin Niemann

Paul Goodwin wrote:

> I have a client who wishes one of these 'favicons' on every page of a
> fairly large site, what I'm wondering, in order to save time, is if it's
> possible to add the icon via the external stylesheet, instead of
> laboriously adding it to each page.

It's sufficient to place the icon as 'favicon.ico' in the root folder of the
site. That's the location a browser will look for (*), when it tries to
load the favicon (look at your server logs and you'll see a lot of 404
error for '/favicon.ico', because it is not present yet).

(*) unless a different location is specified using , but that you require a change of every page - something you
don't want to do.

--
Benjamin Niemann
Email: pink at odahoda dot de
WWW: http://www.odahoda.de/

Re: favicon & css

am 07.08.2005 20:56:23 von Paul Goodwin

"Tina - AxisHOST, Inc." wrote in message
news:dd5d920111i@news2.newsguy.com...
>
> "Beauregard T. Shagnasty" wrote in message
> news:TYpJe.5615$EX.4657@twister.nyroc.rr.com...
> > Paul Goodwin wrote:
> >> I have a client who wishes one of these 'favicons' on every page of
> >> a fairly large site, what I'm wondering, in order to save time, is
> >> if it's possible to add the icon via the external stylesheet,
> >> instead of laboriously adding it to each page.
> >
> > No way that I know of to use CSS for a favicon. You would have to add
the
> > following in the section of the pages. Use correct path, of
course:
> >
> >
> >
> >
> > It must also be a 16x16 true icon file.
> >
> > This would be easy if the stuff in the were added to each page by
a
> > script, as I do; one file for the whole site.
> >
> > Internet Explorer users will not see it unless they bookmark the site,
and
> > then only until the cache is cleared.
>
> Yes. I was going to suggest putting the whole top area of the page
> (generally meta, logo headers, menu) in an include - either ssi or php.
You
> could include the favicon bit in that.

That might be what I'm looking for, thanks for all the replies :)


--
Paul

Re: favicon & css

am 07.08.2005 22:45:29 von Edwin van der Vaart

Benjamin Niemann wrote:
> Paul Goodwin wrote:
>
>>I have a client who wishes one of these 'favicons' on every page of a
>>fairly large site, what I'm wondering, in order to save time, is if it's
>>possible to add the icon via the external stylesheet, instead of
>>laboriously adding it to each page.
>
> It's sufficient to place the icon as 'favicon.ico' in the root folder of the
> site. That's the location a browser will look for (*), when it tries to
> load the favicon (look at your server logs and you'll see a lot of 404
> error for '/favicon.ico', because it is not present yet).
>
> (*) unless a different location is specified using , but that you require a change of every page - something you
> don't want to do.
Can this also be done with .htaccess?
--
Edwin van der Vaart
http://www.semi-conductor.nl/ Links to Semiconductors sites
http://www.evandervaart.nl/ Under construction

Re: favicon & css

am 08.08.2005 15:39:05 von Benjamin Niemann

Edwin van der Vaart wrote:

> Benjamin Niemann wrote:
>> Paul Goodwin wrote:
>>
>>>I have a client who wishes one of these 'favicons' on every page of a
>>>fairly large site, what I'm wondering, in order to save time, is if it's
>>>possible to add the icon via the external stylesheet, instead of
>>>laboriously adding it to each page.
>>
>> It's sufficient to place the icon as 'favicon.ico' in the root folder of
>> the site. That's the location a browser will look for (*), when it tries
>> to load the favicon (look at your server logs and you'll see a lot of 404
>> error for '/favicon.ico', because it is not present yet).
>>
>> (*) unless a different location is specified using , but that you require a change of every page - something you
>> don't want to do.
> Can this also be done with .htaccess?

Not directly. You may use mod_rewrite to serve a different file for requests
to '/favicon.ico'. But this .htaccess file must be placed in the root
folder in order to be effective - so there's nothing gained.

--
Benjamin Niemann
Email: pink at odahoda dot de
WWW: http://www.odahoda.de/

Re: favicon & css

am 08.08.2005 19:58:11 von Edwin van der Vaart

Benjamin Niemann wrote:
> Edwin van der Vaart wrote:
>>Benjamin Niemann wrote:
>>>Paul Goodwin wrote:
>>>
>>>>I have a client who wishes one of these 'favicons' on every page of a
>>>>fairly large site, what I'm wondering, in order to save time, is if it's
>>>>possible to add the icon via the external stylesheet, instead of
>>>>laboriously adding it to each page.
>>>
>>>It's sufficient to place the icon as 'favicon.ico' in the root folder of
>>>the site. That's the location a browser will look for (*), when it tries
>>>to load the favicon (look at your server logs and you'll see a lot of 404
>>>error for '/favicon.ico', because it is not present yet).
>>>
>>>(*) unless a different location is specified using , but that you require a change of every page - something you
>>>don't want to do.
>>
>>Can this also be done with .htaccess?
>
> Not directly. You may use mod_rewrite to serve a different file for requests
> to '/favicon.ico'. But this .htaccess file must be placed in the root
> folder in order to be effective - so there's nothing gained.
Thanx for the information.
--
Edwin van der Vaart
http://www.semi-conductor.nl/ Links to Semiconductors sites
http://www.evandervaart.nl/ Under construction