What I do is dynamically set an ID in the body tag. <body id="typeA">
So, if I have the following class:
div.main {...}
I can add the color by setting
#typeA div.main {background-color:#xxxxxx;}
Repeat for each color:
#typeB div.main {background-color:#xxxxxx;}
#typeC div.main {background-color:#xxxxxx;}
#typeD div.main {background-color:#xxxxxx;}
#typeE div.main {background-color:#xxxxxx;}
_____
Jake Churchill
Team Leader
11204 Davenport, Ste. 100
Omaha, NE 68154
http://www.cfwebtools.com
402-408-3733 x103
-----Original Message-----
From: Bruce Sorge [mailto:[EMAIL PROTECTED]
Sent: Monday, September 10, 2007 12:00 PM
To: CF-Talk
Subject: "Dynamic" CSS
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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:288099
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4