User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 456,519 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 2,821 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 JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 926 | Replies: 5
Reply
Join Date: Nov 2006
Posts: 49
Reputation: kobi is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
kobi kobi is offline Offline
Light Poster

css file

  #1  
Sep 30th, 2007
Hello there
in my html page i use the following link
<LINK href=c:\"Calendar.css" type=text/css rel=stylesheet>

i would like to avoid rediracting to the file css ,so my question where i should put all the information in my htmal page

after? the <body> ?before the <body>?
which tag to use?

Thanks ahead
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Mar 2007
Location: Israel
Posts: 16
Reputation: Shaffer is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 1
Shaffer Shaffer is offline Offline
Newbie Poster

Re: css file

  #2  
Sep 30th, 2007
Hello,
first of all, in-order to keep of with w3c's newest regulations, try this:
<link rel="stylesheet" type="text/css" href="c:\Calendar.css"/>

Anyhow, put it in the <head> section.


Shaffer.
Reply With Quote  
Join Date: Jun 2006
Location: India
Posts: 7,012
Reputation: ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold 
Rep Power: 25
Solved Threads: 368
Moderator
Featured Poster
~s.o.s~'s Avatar
~s.o.s~ ~s.o.s~ is offline Offline
Lazy, Useless & Apathetic

Re: css file

  #3  
Sep 30th, 2007
> i would like to avoid rediracting to the file css
What do you mean by 'redirecting' to the CSS file? The markup you wrote 'links' to an external CSS file. If you don't want to, just remove the line or comment it. Plus the way you provide your 'href' is wrong since "\C" is an illegal escape character and your HTML file would never be able to find the stylesheet and it's a bad practice to use absolute paths. Use relative paths.

<link rel="stylesheet" type="text/css" href="./css/Globals.css" />
Last edited by ~s.o.s~ : Sep 30th, 2007 at 1:07 pm.
I don't accept change. I don't deserve to live.

Happiness corrupts people.

Failing to value the lives of others cheapens your own.
Reply With Quote  
Join Date: Nov 2006
Posts: 49
Reputation: kobi is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
kobi kobi is offline Offline
Light Poster

Re: css file

  #4  
Sep 30th, 2007
Thanks
when i do it the table appera without the grid,somethimg that dont happpen if i use the link.

do you have any idea way?
Thanks
Reply With Quote  
Join Date: Jun 2006
Location: India
Posts: 7,012
Reputation: ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold 
Rep Power: 25
Solved Threads: 368
Moderator
Featured Poster
~s.o.s~'s Avatar
~s.o.s~ ~s.o.s~ is offline Offline
Lazy, Useless & Apathetic

Re: css file

  #5  
Sep 30th, 2007
You must be using IE. IE is famous for running and supporting all that is 'non-standard'. That behavior is not guaranteed for all browsers. Post your code if you still have queries.
I don't accept change. I don't deserve to live.

Happiness corrupts people.

Failing to value the lives of others cheapens your own.
Reply With Quote  
Join Date: Jan 2007
Posts: 2,604
Reputation: MidiMagic is on a distinguished road 
Rep Power: 7
Solved Threads: 119
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Posting Maven

Re: css file

  #6  
Oct 7th, 2007
There are errors in this:

<link rel="stylesheet" type="text/css" href="c:\Calendar.css"/>

That code is referencing a file on your own computer's hard disk. It won't work for anyone else. The string "c:\Calendar.css" is a DOS or Windows disk path. The Internet doesn't know what those are. The only place this works is if the page is open on the Windows computer the files are actually stored on.

Many servers don't have the foggiest notion of what a "c:" drive is.

You need a space before the/> portion of the tag. Otherwise, IE generates an error condition.
Last edited by MidiMagic : Oct 7th, 2007 at 1:28 am.
Daylight-saving time uses more gasoline
Reply With Quote  
Reply

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

DaniWeb JavaScript / DHTML / AJAX Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum

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