I've done it before. You don't even need the content header at the top. Just throw a cfoutput around the contents of the page and go to town.
<!----------------//------ andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --------------//---------> -----Original Message----- From: Ian Skinner [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 05, 2006 3:30 PM To: CF-Talk Subject: Fun with CF CSS Files. 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. -------------- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA --------- | 1 | | --------- Binary Soduko | | | --------- "C code. C code run. Run code run. Please!" - Cynthia Dunning Confidentiality Notice: This message including any attachments is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender and delete any copies of this message. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:262964 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

