March 24th, 2004, 12:16 PM
Link to .CSS via full url path???
I am building a template page, this has the header only stored in the page, then a php page is loaded from a different file as the body of the page,
how do i set a full path to my css style sheet via the template page:
for some reason this doesn't work! I can't set the path using '../../styles/mycss.css' because the template file will be stored in many different depths of my site,
SO: How can i set some sort of path to the css file?
any help will be appreciated!
March 24th, 2004, 12:37 PM
<link rel="stylesheet" type="text/css" href="http://mysite.com/styles/mycss.css" />
March 24th, 2004, 12:45 PM
cheers! thats really wierd I tried to swap http full url for the ../ stuff before and it just messed up and other people have said they couldn't link to css by the full http link but it works now?
why is that, do you know?
cheers again, Alex.
March 24th, 2004, 04:10 PM
you can also do a root link:
<link rel="stylesheet" href="/styles/style.css" type="text/css"/>
March 25th, 2004, 05:40 AM
Ok Mate Cheers For That!