Re: Using PHP with Style Sheets
| From: | Dagfinn Reiersøl | Date: | Mon, 19 Jan 2004 08:32:11 +0000 |
| Subject: | Re: Using PHP with Style Sheets | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-175002@lists.php.net to get a copy of this message | ||
Freedomware wrote:
"Sorry but you haven't really stumbled onto a pot of gold here or anything." Hmmm... it sounds like using PHP with style sheets isn't a recommended practice.I wouldn't do it unless I had a good reason to do it. The reason that's cited on the page you referred to is to have different code in Netscape 4 and "real browsers". So if you have a real need to make pages pages to look gorgeous in Netscape 4, you might consider it. Or if you want to do pathologically ;-) advanced and flexible things with styles. Plain CSS is flexible enough for me most of the time, but it's a good idea to learn it properly.
John Nichel wrote:If you want PHP to parse your *.css files, you need to tell your webserver software to do so. In Apache.... AddType application/x-httpd-php .php .cssBut I'd like to give it a try. Thanks for the tips.