The main problem I see is that the CSS can't be cached by the client. You will force a new download on each request.
I would opt to use different CSS files and then use CF to "LINK" to them in the HTML HEAD. But, that is if you are wanting to give different "skins" rather than quickly-changing dynamic styles. Other than that, it's pretty cool. M!ke -----Original Message----- From: Munson, Jacob [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 05, 2006 3:35 PM To: CF-Talk Subject: RE: Fun with CF CSS Files. I don't see any problems with this, except that like you said, CSS editors probably won't parse the CSS. What's the benefit you're trying to attain here? A CMS type system? > -----Original Message----- > From: Ian Skinner [mailto:[EMAIL PROTECTED] > Sent: Tuesday, December 05, 2006 2:30 PM > > An Interesting Experiment: > > A_CSS_File.cfm > -------------- > <cfset aColor="00FF00"> > > <cfoutput> > <cfcontent type="text/css" reset="yes"> > /* CSS Content that will be processed through ColdFusion first. */ > > h1 { > color: ###aColor#; > } > > </cfoutput> > > A_CFML_FILE.cfm > --------------- > <html> > <head> > <title>Fun with CSS & CF</title> > <link rel="stylesheet" href="A_Css_File.cfm" media="all" /> </head> > > <body> > <h1>Fun with CSS & CF<h1> > </body> > </html> > > Has anybody every tried this? I was just playing and gave it a try. > It was surprisingly straight forward and I think I see some real > potential. The only real issue I've experienced is that Dreamweaver > has NO idea how to color code or popup help a css file with a cfm > extension. "EMF <idahopower.com>" made the following annotations. ------------------------------------------------------------------------ ------ This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. ======================================================================== ====== ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Create robust enterprise, web RIAs. Upgrade & integrate Adobe Coldfusion MX7 with Flex 2 http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:262961 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

