Forum Moderators: not2easy
Alas, I don't think scripting is allowed in CSS files, or is there some way I don't know of?
I've thought of just putting the CSS in the page itself, thereby getting PHP in on the action. But this seems like a step in the wrong direction.
a) configure your site so .css files are parsed with PHP;
b) write the relevant CSS code in-line using PHP; or
c) use PHP to include alternate style-sheets.
You don't need to include ALL the CSS code in-line for (b) - just the sections you want to make dynamic.