Working with variables for color in CSS

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Working with variables for color in CSS

Post by RonnyK »

Is there a possibility to work with a set of colors and have these only addressed once in css. If I change the color of my pages at this time I have to do a find-replace throughout the css. I'd rather define some colors on top and re-use the declaration on different places in CSS, instead of replacing multiple occurances.

Ronny
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Working with variables for color in CSS

Post by Dr.CSS »

You can find all color calls in the CSS's and then put them in one CSS called Color then make diff. ones for diff. styles and attach them to various templates according to color scheme you desire...
Post Reply

Return to “Layout and Design (CSS & HTML)”