LERNWebmaster
asked on
Include dynamic style sheet
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 and Mozilla, but the stylesheet isn't applied in Netscape or 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.no rmalFont#< /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/ Netscape & Opera (while still working in IE & Mozilla) using the link implementation?
::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.no
-->
</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/ Netscape & Opera (while still working in IE & Mozilla) using the link implementation?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
using the single quotes isn't necessary, as the data type for user is int.
thank you for accepting my answer LERNWebmaster .. however, if my answer was the accepted answer.. why the low C grade?
ASKER