Just link to a css page like so:

<link rel="stylesheet" href="styles.cfm" /> 

Works a treat.

-----Original Message-----
From: Barney Boisvert [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 10, 2007 12:09 PM
To: CF-Talk
Subject: Re: "Dynamic" CSS

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.



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:288102
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