Justin, when you echo/print your CSS info, you can add tabs /t and
newlines /n to your documents for indentation and organization in the
source if that's what you're after.
Otherwise, when you output it to the browser it's going to print it to a
few lines with no discernable order.
-M
On Thursday, July 24, 2003, at 01:05 PM, Mike Brum wrote:
Justin, when you echo/print your CSS info, you can add tabs /t and
newlines /n to your documents for indentation and organization in the
source if that's what you're after.
Otherwise, when you output it to the browser it's going to print
* Thus wrote Justin French ([EMAIL PROTECTED]):
Hi all,
I'm forcing my style sheets (.css) though the PHP parser, so that they
can take advantage of some color variables and global config settings
via include files, eg:
body {
background-color: #?=$col['1']?;
}
however,
If I remember correctly, it'd be
header(Content-Type: text/css);
HTH
Martin
-Original Message-
From: Justin French [mailto:[EMAIL PROTECTED]
Sent: Thursday, 24 July 2003 12:42 PM
To: php
Subject: [PHP] do i need to output headers on parsed CSS files?
Hi all,
I'm forcing my style
--- Justin French [EMAIL PROTECTED] wrote:
So, my assumption is that pushing the .css file through PHP is
putting the wrong header on the file (text/html) rather than
text/css
Yeah, that's a very good guess. You should be able to do something like this to
specify the content type yourself:
Yup, that worked... thanks to everyone for their help :)
Justin
On Thursday, July 24, 2003, at 01:50 PM, Chris Shiflett wrote:
Yeah, that's a very good guess. You should be able to do something
like this to
specify the content type yourself:
header('Content-Type: text/css');
--
PHP General
6 matches
Mail list logo