Because CSS files are obtained using HTTP (like HTML), you can add PHP
into CSS simply by making the file style.php instead of style.css .
Otherwise, it's exactly the same as including a static CSS file.
Richard Hawking wrote:
I was wondering if it's possible to use a PHP echo within CSS styling.
Something like:
#<?php echo $pageId; ?> #<?php echo $navId; ?> {color:#666666;}
Would this work? If so, is it advisable to do this kind of thing?
______________________________________________________________________
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/
--
http://www.mozilla.org/products/firefox/ - Get Firefox!
http://www.mozilla.org/products/thunderbird/ - Reclaim Your Inbox!
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
______________________________________________________________________
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/