On 24 May 2005, at 23:37, Uwe Kaiser wrote:
Christian Heilmann schrieb:
On 5/24/05, Brian Cummiskey <[EMAIL PROTECTED]> wrote:
Uwe Kaiser wrote:
Do we really need the extension ".css"? And if yes, why?
There may be a better reason behind this, but... the extention
triggers
the webserver to serve the page in the proper format.
You can cal4l it anything you want, so long as you force the
"header:
content-type" of "text/css".
Also, humans have to edit them and would like to know what a file is
and operating systems associate files by extension. You can also set
your server up not to make certain files indexable by file extension.
I wonder what the benefits of omitting the extension are?
If the extension wouldn't be important (because the web server
is sending the correct mime type), I could link to an "basis.php"
to manipulate the styles server sided via scripting.
Uwe Kaiser
You can do that if you wish. As above, just use <?php header("Content-
type: text/css"); ?> at the top of your document then add your CSS as
normal. Anytime you want to add some scripting just insert the PHP
tags and you're all set.
Regards
Greg
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/