LOCAL Path for CSS not working

I have the following :

<link rel="stylesheet" href="=C:\Documents and Settings\mjohns\Desktop\EA Desktop\EA Desktop\res\ead.css" type="text/css" />

The css is there but the page isn't reading it? Am I missing something?????
894359Asked:
Who is Participating?
 
GrandSchtroumpfConnect With a Mentor Commented:
try this:
<link rel="stylesheet" href="file:///C:/Documents%20and%20Settings/mjohns/Desktop/EA%20Desktop/EA%20Desktop/res/ead.css" type="text/css" />
0
 
894359Author Commented:
WHy is that????
0
 
894359Author Commented:
It did work and I understand the URL rncoding part but why the  file:///
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
GrandSchtroumpfCommented:
because the href is expecting a url.
and what i posted is the url to the local css file, what you used before is a windows path, and that does not work.
0
 
894359Author Commented:
Thanks... FYI... I didn't need the url encoding of the spaces!
Thanks again!
0
 
GrandSchtroumpfCommented:
"file://" is part of the url specification for an absolute url to a local file.
if you don't include either "file://" or "http://", then the url is relative.
0
 
GrandSchtroumpfCommented:
> FYI... I didn't need the url encoding of the spaces!
i know it's not required most of the times, but it's good practice to use it.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.