Links to dynamically created (via ColdFusion) CSS

I would like to link to a dynamic style sheet created in CF (<link href="CSS.cfm" rel="stylesheet" type="text/css">) (it is being linked on a CF page). I've added <cfcontent type="text/css; charset=ISO-8859-1"> to the css.cfm and the page displays correctly in in IE, Firefox and Netscape, but the stylesheet isn't applied in Opera.

::Stylesheet::
  <cfcontent type="text/css; charset=ISO-8859-1">
 <cfquery name="userSettings" datasource="barney">
     SELECT * FROM userSettings WHERE user=#authenicatedUserID#
 </cfquery>
<style type="text/css">
   <!--
     .NormalText {  font-family: <cfoutput>#userSettings.normalFont#</cfoutput>;}
    -->
</style>

I can make it work in all browsers, by using a cfinclude, but I would prefer to link to the dynamically generated CSS.

How can I get this to work w/ Opera (while still working in IE, Firefox and Netscape) using the link implementation?
LERNWebmasterAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

GrandSchtroumpfCommented:
> I would prefer to link to the dynamically generated CSS.
Are you sure about that?
If you need to dynamically generate the CSS, it might be better to just nest it inside your page.
Using a linked CSS is good because the client just needs to download it once.
But it it's dynamically generated, i don't see the point.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
LERNWebmasterAuthor Commented:
I would like to re-use the styles in multiple pages, thus using a linked css would allow me to make changes to the one file (it is not 100% dynamic) and have those changes reflected sitewide.  Turns out I had some ColdFusion stuff after setting the contenttype, I moved that to before the <cfcontent> and all is well.
0
GrandSchtroumpfCommented:
i'm happy you found a solution.  thanks for the points.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development Software

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.