Relative Link to Stylesheet not working
Posted by: Porpoise (---.resC149.jtibs.net)
Date: August 04, 2007 09:22PM

Hi all,

A rather perplexing issue has arisen. It took me a little while to work out why my .CSS was working fine on the production server but not on the development (Wampserver) server. The following:

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

works fine on the production server but, for some reason, it does not seem to work on Wampserver - which is a real pain. I can get the styles to load by "include"ing the stylesheet but I don't really want to do things that way.

Does anyone have any ideas where I can "tweak" Wampserver to get the relative link to work?

Any pointers would be gratefully received.


Options: ReplyQuote
Re: Relative Link to Stylesheet not working
Posted by: Asho (---.dynamic.dsl.as9105.com)
Date: August 04, 2007 10:20PM

Have you opened from file or from [localhost]? If you have opened from file, Open from [localhost] eg. [localhost]

Also you have to have the stylesheet in the same folder.

Options: ReplyQuote


Sorry, only registered users may post in this forum.