Home › Forums › CSS › Conditional Sylesheet, I’ve messed up somewhere, can’t find it. › Re: Conditional Sylesheet, I’ve messed up somewhere, can’t find it.
Remember, that the paths given in link or script tags in the header is given to the browser and then requested from the users location – its not just sent along with the file, as when you include stuff with a server side language. So, a path to a stylesheet or javascript file, should be the path to where it could be found on your webserver, or another webserver.
Depending on how you start the path, the browser will look different places:
/ means the root of your webserver
./ means the current directory (this is what the browser does when you only provide a filename)
http:// – will make the browser look at another domain
Take a look on this – imagine its part of the head tag contents of a webpage located at http://www.example.com/hello/index.html
The first link tag refers to http://www.example.com/css/stylesheet.css
The second and third link tags refer to http://www.example.com/hello/css/stylesheet.css
The fourth obviously refers to http://www.example2.com/css/stylesheet.css