PHP statements in CSS file?

Sicky321

New member
I need help running php functions in my CSS file.

This works:

background-color:#<? if ('a' == 'a') { echo 'ff0000'; }?>;

but this does not work:

background-color:#<? if(isset($check) && ($check== 'No')) { echo 'ff0000'; }?>;

The second one is using a function which is included from a separate file. What can I try? Thanks
 
Back
Top