User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the HTML and CSS section within the Web Development category of DaniWeb, a massive community of 401,523 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,396 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our HTML and CSS advertiser: Lunarpages Web Hosting
Views: 721 | Replies: 4 | Solved
Reply
Join Date: Oct 2007
Posts: 13
Reputation: nikhita is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
nikhita nikhita is offline Offline
Newbie Poster

Help Fav icon in CSS

  #1  
Mar 19th, 2008
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">
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Mar 2008
Location: Slovakia
Posts: 61
Reputation: lio04 is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 4
lio04's Avatar
lio04 lio04 is offline Offline
Junior Poster in Training

Re: Fav icon in CSS

  #2  
Mar 20th, 2008
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" />
Last edited by lio04 : Mar 20th, 2008 at 8:31 pm.
Jabber: lio04(at)jabbim(dot)sk
P.S. Sorry for my English, I am autodidact :)) In school I have only German.
Reply With Quote  
Join Date: Feb 2008
Posts: 7
Reputation: tarsem is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 1
tarsem's Avatar
tarsem tarsem is offline Offline
Newbie Poster

Re: Fav icon in CSS

  #3  
Mar 25th, 2008
  1. <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
Last edited by peter_budo : Mar 25th, 2008 at 2:56 pm. Reason: Keep It Organized - please use [code] tags + Please do not use "leet" speak or "chatroom" speak.
Reply With Quote  
Join Date: Oct 2007
Posts: 13
Reputation: nikhita is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
nikhita nikhita is offline Offline
Newbie Poster

Re: Fav icon in CSS

  #4  
Mar 31st, 2008
Thank you.. That s what I wanted
Reply With Quote  
Join Date: Oct 2007
Posts: 13
Reputation: nikhita is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
nikhita nikhita is offline Offline
Newbie Poster

Re: Fav icon in CSS

  #5  
Mar 31st, 2008
lio04, thanks... what u suggested was I needed
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb HTML and CSS Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Other Threads in the HTML and CSS Forum

All times are GMT -4. The time now is 2:56 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC