This is a discussion on Including files within the Apache Web Server forums, part of the Web Server and Related Forums category; Hi all, I wrote a script and a style sheet, that I want to use everywhere on my website. I ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Vincent wrote:
> Hi all, > > I wrote a script and a style sheet, that I want to use everywhere on my > website. I don't want to change my template for each directory, so is > there a way tomake those 2 files in each folder available? How does the 'template' now call the stylesheet? If you just use an absolute url to link to the stylesheet and the script, you won't have to change it for each directory. -- Els http://locusmeus.com/ Sonhos vem. Sonhos vão. O resto é imperfeito. - Renato Russo - |
|
|||
|
Currently I'm designing the style sheets, so all the files are in one
single folder, but when I want to apply the style sheets to all my pages, I have to add "../" or "../../" (etc) to the urls. It's impossible to use absolute urls, because the address of my server isn't always the same. |
|
|||
|
Vincent wrote:
> Currently I'm designing the style sheets, so all the files are in one > single folder, but when I want to apply the style sheets to all my > pages, I have to add "../" or "../../" (etc) to the urls. It's > impossible to use absolute urls, because the address of my server isn't > always the same. The address of the server doesn't matter. "/css/style.css" is always from the root. No matter from which directory or on which server you use it. -- Els http://locusmeus.com/ Sonhos vem. Sonhos vão. O resto é imperfeito. - Renato Russo - Now playing: The Eagles - Heartache Tonight |