View Full Version : Linking to External Style Sheet in Another Folder


wergo
12-22-2004, 09:09 PM
Lets say I have my style sheet in folder www and i have a page called html.htm thats within a folder thats in the folder www called html (www/html/html.htm).
Is there anyway I can put in the href=" " part that would link to the style sheet outside the html folder instead of putting the entire location?
(hope I made sense)

lovely
12-22-2004, 09:51 PM
I don't think you can, no. It's a linear style locator, so it would only go one way. Sorry. :(

Rosey
12-22-2004, 10:25 PM
no you can go up a level with the href too.

link it like this:

<link href="../style.css" rel="stylesheet" type="text/css">

So that tells your html.html (that's in the folder) to go up a level and look for style.css

lovely
12-22-2004, 10:27 PM
Oh! How cool! I didn't realize that. It works that way on my Linux system too, I just didn't think it would do that anywhere else. Guess you learn something new everyday. ^_^ Thanks, Rosey.

Rosey
12-22-2004, 10:35 PM
yeah it's pretty cool :)

wergo
12-22-2004, 10:43 PM
I was soo close kept trying ..styles.css = D