Re: CF to make Dynamic CSS

2004-10-20 Thread Barney Boisvert
with your LINK tag, rather than referencing a CSS file, reference a CFM file that just happens to generate valid CSS. Or, an easier solution is to just emebed the CSS directly in the page. You're not going to lose anything by doing it this way if you're already using a dynamic CSS file. cheers,

Re: CF to make Dynamic CSS

2004-10-20 Thread Massimo, Tiziana e Federica
I'm trying to think of a way to change values in a css file using CF. How can I write to a css file? Any thoughts? You can serve a .cfm as CSS, just add the proper mime-type: cfcontent type=text/css; charset=ISO-8859-1 body{ font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;

RE: CF to make Dynamic CSS

2004-10-20 Thread Paul Vernon
We do this. Firstly we created a file mapping called cssx which maps to CF server in IIS then we save out our css with the cssx file extension and the cf code we want in there... Then in the HTML the link to the stylesheet is style.cssx or whatever you call it That way CF handles all the

Re: CF to make Dynamic CSS

2004-10-20 Thread Keith Gaughan
Barney Boisvert wrote: with your LINK tag, rather than referencing a CSS file, reference a CFM file that just happens to generate valid CSS. Or, an easier solution is to just emebed the CSS directly in the page. You're not going to lose anything by doing it this way if you're already using

RE: CF to make Dynamic CSS

2004-10-20 Thread Ewok
Nice trick! -Original Message- From: Paul Vernon [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 20, 2004 1:44 PM To: CF-Talk Subject: RE: CF to make Dynamic CSS We do this. Firstly we created a file mapping called cssx which maps to CF server in IIS then we save out our css