Store color in variable in CSS style sheet

liunx

Guest
hi,<br />
I have used CSS styles in developing my web pages. My situations is such that i have to keep changing the color that i use in these web pages. I use the color in different classes in the CSS style. I wanted to know if I could (somehow) store the color in a variable ,such that if i change the variable, it is changed wherever i have used that color in the CSS style.<br />
<br />
Thanks<!--content-->hhmm I'm not aware of any way of doing that.<br />
<br />
How about using 'Find and Replace' (with, say, Notepad) to change the colour? That's the simplest and quickest way I can think of.<!--content-->you could use a php style switcher which is mostly used to allow users to change styles, i'm sure it could be adapted so that only you change the styles and not the users,<br />
although i have used it in a couple of sites i merely followed a tutorial on how to do it, here's one (<!-- m --><a class="postlink" href="http://www.devarticles.com/art/1/279/2">http://www.devarticles.com/art/1/279/2</a><!-- m -->), i think scoutt would be better able to give your more info on this option, if it's even workable option? :)<!--content-->
 
Back
Top