RE: [PHP-DB] CSS versus Includes
| From: | richarda at askr dot easysoft dot com | Date: | Mon, 02 Apr 2001 10:31:14 +0000 |
| Subject: | RE: [PHP-DB] CSS versus Includes | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-8129@lists.php.net to get a copy of this message | ||
One of the benefits to including a css (as opposed to LINK REL...) is
that you can pre-process the CSS file with PHP.
e.g.
my_css.phtml:
<STYLE>
<!--
P ( color: <? echo $MyPHPColorSetting ?> };
-->
</STYLE>
or even more useful:
if ($Browser='IE')
{
include "ie.css";
}
else
{
include "other.css";
}
Hope this helps.
_____
~ Richard Allsebrook ~
Applications Developer and Webmaster
Easysoft Limited, Thorp Arch Grange, Thorp Arch, Wetherby, LS23 7BA, UK
http://www.easysoft.com <http://www.easysoft.com> -
http://www.cinema.com <http://www.cinema.com>
"A computer lets you make more mistakes faster than any invention in
human history - with the possible exceptions of handguns and tequila."
_____
-----Original Message-----
From: mbraynard [mailto:mbraynard@atlantech.net]
Sent: Saturday, March 31, 2001 12:45 AM
To: php-db
Cc: mbraynard
Subject: FW: [PHP-DB] CSS versus Includes
I have found that includes work just about as well. Any suggestions on
going
with one or the other?
Attachment: [application/rtf]
Attachment: [application/rtf]