Hi,
On my site, I have CSS sheets with a relatively large amount of classes in them. In a lot of the classes, the colours (for example) are the same.
Is there a way to "reference" another class to set the right colour?? Basically, so I only have to change one colour, and all the colours in the other classes will change. For example, something like:
.dark{color: black}
.maintext{color: .dark.color}
Hence, giving
.maintext{color: black}
Is there a way to do this, or some other method that I haven't considered?? There are too many pages to go through and set two classes to everything.
Cheers,
Richard.
On my site, I have CSS sheets with a relatively large amount of classes in them. In a lot of the classes, the colours (for example) are the same.
Is there a way to "reference" another class to set the right colour?? Basically, so I only have to change one colour, and all the colours in the other classes will change. For example, something like:
.dark{color: black}
.maintext{color: .dark.color}
Hence, giving
.maintext{color: black}
Is there a way to do this, or some other method that I haven't considered?? There are too many pages to go through and set two classes to everything.
Cheers,
Richard.