This is a 2 part question.
First, how can I or can I set a color and then use that throught my style sheet, something like:
defcolor=#990000
<style>
.css1 {color:defcolor}
.css2 {background-color:defcolor}
.
.
</style>
so I do not have to track down this color everywhere if I want to change it.
Question 2
How can I set one style equal to another?
<style>
.css1 {
color:red;
font-size:12;
padding:2;
}
.css2 {
(.css2=.css1)
background-color:blue;
text-align:right;
}
.
.
</style>
I know I can put the css2 in the first section also, but that does not accomplish how I want to manage my styles.
Thanks, Troy
For the second you you need to modify the style rule on the fly with scripting. Or you can wait to see if browser manufactures support a larger subset of CSS3 then they have with CSS2. You still won't get variables, but behaviours/imbeded script might be there, if they can figure out how to do it securely.
If you want scripting for part 2, let me know and I will post something.
Cd&