/    Sign up×
Community /Pin to ProfileBookmark

<link rel="Shortcut Icon" href="fav.ico" type="image/x-icon" />

is there a way to change the line

<link rel=”Shortcut Icon” href=”fav.ico” type=”image/x-icon” />

with CSS.

to post a comment
CSS

5 Comments(s)

Copy linkTweet thisAlerts:
@buntineFeb 14.2004 — What do you mean? CSS cannot alter your source code...
Copy linkTweet thisAlerts:
@fredmvFeb 14.2004 — Perhaps he means the CSS equivalent? Either way, it's simply not needed. If you have a file named [font=courier]favicon.ico[/font] in your server's root directory it should work fine regardless.
Copy linkTweet thisAlerts:
@chris9902authorFeb 14.2004 — i should have explained more.

i have a CSS style changer and would like to know if i could change that icon when my style sheet changes.

thanks anyway
Copy linkTweet thisAlerts:
@Robert_WellockFeb 16.2004 — No, with PHP or JavaScript perhaps but not CSS.
Copy linkTweet thisAlerts:
@ray326Feb 16.2004 — If you have a style changer then you're probably running Javascript to do it. If so then you could use Javascript to emit (document.writeln) the appropriate link line.
×

Success!

Help @chris9902 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...