You could pass .css files through the CF interpreter, but then you'd
lose the benefits of static files (caching, direct serving, etc.).
The easiest solution (and the one I'd pick) is probably to just write
that one background-color attribute into the page directly with a
STYLE tag.  Short of that, you could build a "builder" script that
would take a single CSS template, and then generate your 12 different
sheets from that master template.  Just rerun any time the colors
change to keep it current.

cheers,
barneyb

On 9/10/07, Bruce Sorge <[EMAIL PROTECTED]> wrote:
> Good morning everyone.
> I have a question. I am working on our school's websites and rather than
> have 12 different style sheets, I would like to have one style sheet that
> has three classes where the background-color attribute is dynamic. So how
> would I go about doing this? Now I can create a css.cfm page and load the
> colors into the database, making sure that the proper school ID is
> associated with their respective colors, but I thought that I might be able
> to use the .css page instead.
>
>
> Thanks,
>
> --
> Bruce
-- 
Barney Boisvert
[EMAIL PROTECTED]
http://www.barneyb.com/

Got Gmail? I have 100 invites.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Check out the new features and enhancements in the
latest product release - download the "What's New PDF" now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:288097
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to