View Full Version : CSS files Please Help


Seanrct
05-07-2003, 04:45 PM
I am having trouble with CSS. I have a folder called "Folder 1". Inside Folder 1 is a webpage called "index.html", a CSS called "Style.css", and a folder called "Folder 2". Inside Folder 2 is a webpage called "Page2.html". How do I make the Page2.html use the Style.css file. I have tried verything I could think of, but it doesn't work. I can get the index.html page to use the CSS, but not Page2.html.

Please help!

amicus
05-07-2003, 05:07 PM
put the code into Page2.html. should be one of the 2 codes.
<LINK REL="stylesheet" HREF="/Folder 1/Style.css" TYPE="text/css">
<LINK REL="stylesheet" HREF="/Folder%201/Style.css" TYPE="text/css">

chances are it's the first one. you really shouldn't have spaces in your directory or file names. explanation of what's happening is:
/ - means that it goes back to the root
Folder 1 - goes down this folder
Style.css - the file it's gonna use

let us know if this doesn't work and we'll figure it out. if not me then i'm sure someone else will :)

Seanrct
05-07-2003, 06:24 PM
Thank you very much, it works now. I thought it had something to do with adding an extra /, but I didn't know where.