Link to home
Start Free TrialLog in
Avatar of MJ
MJFlag for United States of America

asked on

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?????
ASKER CERTIFIED SOLUTION
Avatar of GrandSchtroumpf
GrandSchtroumpf

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of MJ

ASKER

WHy is that????
Avatar of MJ

ASKER

It did work and I understand the URL rncoding part but why the  file:///
Avatar of GrandSchtroumpf
GrandSchtroumpf

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.
Avatar of MJ

ASKER

Thanks... FYI... I didn't need the url encoding of the spaces!
Thanks again!
"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.
> 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.