Sent by Fullmoon Deisgns on 1 July 2004 16:04
Marty Martin wrote:
> I have setup a set of dynamic stylesheets that use database variables
> to fill in styles in a ColdFusion setting. For example:
>
> body {
> font: #request.databaseVariable#;
> }
>
> The stylesheet is then called from the <head> area with:
>
> <link href="http://dev.hubmarketplace.com/clients/hub/styMain.css.cfm"
> media="screen" rel="stylesheet" type="text/css" title="formal">
>
> Notice the .cfm after the .css. This is necessary so the ColdFusion
> server will parse the stylesheet. The problem is though, this renders
> fine in IE but not in Mozilla/Gecko. A shocker to have something work
> in IE and not Moz I know, and I'm wondering if it's because of the
> .cfm on the end of the stylesheet. It's the only guess I have, could
> someone else lend their expertise on the matter and suggest a solution?
>
> I could possibly setup the server to parse all .css files by default,
> but this would require a lot of extra work in setting up the
> stylesheets to be parsed...
>
> Thanks,
My suggestion would be to change use an include instead of link, bad
part is it will show the css in the head, not as linked, but it should
work then, heres a quick example
<style>
#include file="blah.cmf"#
</style>
I dont use CF, so no idea how to include but with php it would be
<? include("blah.cmf") ?>
Mike
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/