can somebody help me whether the shortcut icon can be called using a CSS file. other than the following code given below:

<link rel="shortcut icon" href="favicon1.ico">

Recommended Answers

All 4 Replies

It is not possible with CSS, but you can apply PHP include method, if you don't want <link rel> in header.

In header will be:

<?php include "favicon.php" ?>

In PHP file will be:

<link rel="shortcut icon" href="favicon.ico" />
commented: Good work +7
<link rel="shortcut icon" href="favicon.ico" />

-- its is simple idea for your web site Fav Icon,
why r u plan form including another file

Thank you.. That s what I wanted

lio04, thanks... what u suggested was I needed

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.