I couldn't find this anywhere so I'm not sure that it exists.
In most programming languages, one can define a value and then uses that
value by referencing the name in all of the source, and if that value
needs to be changed, then it's a simple matter of changing the
definition, and the change will be reflected of course throughout the
whole thing.
Example:
#define d_length: 20;
and then use 'd_length' in functions instead of typing 20. If you change
the definition then the value changes throughout.
I would like to be able to do something like:
#define color_1: red;
#define size_1: 0.9em;
p {
background-color: color_1;
font-size: size_1;
}
h1 { background-color: color_1; }
td {
width: 20px;
font-size: size_1;
}
This could come in very handy in creating similar stylesheets to create
various schemes.
Is there something like that in CSS and I missed it somehow, or is such
functionality non-existant in CSS?
--
J Brady