LINK Tag and CSS
-
I'm going crazy here, I have my file (default.htm) in the root with a link tag: and it's working. I want my stuff to be organized so I moved the News.css into a CSS folder and changed href to "CSS/News.css". Now it doesnt load the css file. I also tried different names for the sub-directory and putting a slash and dot slash in front of CSS (e.g. /CSS/News.css and ./CSS/News.css). The only thing can get to work is if it's in the same directory. Why? What am I doing wrong? Am I crazy? Post if you need any more information.
-
I'm going crazy here, I have my file (default.htm) in the root with a link tag: and it's working. I want my stuff to be organized so I moved the News.css into a CSS folder and changed href to "CSS/News.css". Now it doesnt load the css file. I also tried different names for the sub-directory and putting a slash and dot slash in front of CSS (e.g. /CSS/News.css and ./CSS/News.css). The only thing can get to work is if it's in the same directory. Why? What am I doing wrong? Am I crazy? Post if you need any more information.
Well /CSS/News.css should work, as long as CSS is in the root directory. Also remember that linux/Unix servers are CaSe sensitive. One degubbing teqniqe might be to try linking to an image in the CSS directory.
Brad Australian "Keyboard? Ha! I throw magnets over the RAM chips!" - peterchen
-
I'm going crazy here, I have my file (default.htm) in the root with a link tag: and it's working. I want my stuff to be organized so I moved the News.css into a CSS folder and changed href to "CSS/News.css". Now it doesnt load the css file. I also tried different names for the sub-directory and putting a slash and dot slash in front of CSS (e.g. /CSS/News.css and ./CSS/News.css). The only thing can get to work is if it's in the same directory. Why? What am I doing wrong? Am I crazy? Post if you need any more information.