gtbikerider
Technical User
Hi
I'd like to specify colors - something like
................................
<cfswitch expression="#product#">
<cfcase value="01">
<cfset backgroundcolor = "#99CC00">
</cfcase>
<cfdefaultcase>
<cfset backgroundcolor = "#33FF33">
</cfdefaultcase>
</cfswitch>
................................
then use those colors in the CSS file. However I can't put variables in the CSS file because (presumably) ColdFusion doesn't parse them. I realise I could load different CSS files red.css/blue.css etc but this seems a kludge - is there a better way?
--
--
John
I'd like to specify colors - something like
................................
<cfswitch expression="#product#">
<cfcase value="01">
<cfset backgroundcolor = "#99CC00">
</cfcase>
<cfdefaultcase>
<cfset backgroundcolor = "#33FF33">
</cfdefaultcase>
</cfswitch>
................................
then use those colors in the CSS file. However I can't put variables in the CSS file because (presumably) ColdFusion doesn't parse them. I realise I could load different CSS files red.css/blue.css etc but this seems a kludge - is there a better way?
--
--
John