Forum Moderators: not2easy
Is it perfectly acceptable to use a .php file to server CSS content?
The reason is I want to due some server side processing on the CSS stylesheet and there need to use a non .css file extension.
So i'll have something like:
<STYLE type=text/css media=screen>@import url( somefile.php?a=1 );
</STYLE>
text/css. The second is that you test to ensure that the file is cacheable - otherwise you risk it being called from the server every time, in which case you might as well have the CSS inline and save on server load. There's a good thread in the CSS forum library which might be of interest: