Christian Seberino wrote:
When I display a local file in Apache..

e.g. file://path/to/some/file.html

It doesn't use a CSS style sheet.


Is there a way to apply some CSS style sheet to ALL local
files Apache displays?  Is there some system wide way
to do this?

Well for one, to be technical, Apache doesn't display anything, your browser does (Firefox, Mozilla, IE [ *uigh* ], etc)

So it's up to your browser to find the file (or make the HTTP GET request) appropriately based on the information in the HTML.

Now if your CSS is not inline in your HTML (and is a seperate download) then if you don't have it in the same "relative" path as your HTML as you would find it on the filesystem (becoz files and directories can be mapped to different locations in Apache's configuration files) then you'll have to use a symlink farm so your browser can find them on the filesystem, just the same.

On the otherhand, it may just be that your broser, as you say, doesn't do CSS for file:// URLs !?!?

--
Michael O'Keefe                      |          [EMAIL PROTECTED]
Live on and Ride a 03 BMW F650GSDakar|          [EMAIL PROTECTED]      / |
I like less more or less less than   |Work:+1 858 845 3514        /  |
more. UNIX-live it,love it,fork() it |Fax :+1 858 845 2652       /_p_|
My views are MINE ALONE, blah, blah, |Home:+1 760 788 1296       \`O'|
blah, yackety yack - don't come back |Fax :+1 858                _/_\|_,


--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to