A web site I am building has a colour scheme for text and backgrounds. The same colour will often apply to several different styles of text. The same argument will apply to font sizes. So in my style sheet I might have:
What would be the best approach (if one exists) to implement this example in such a way that it does not need to be changed in 3 places if the colour scheme changes? In VB I would use a constant but I am aware this is not an option in CSS.
Thanks in advance.
Code:
.TxtHigh01 { color: #CC3333; font-size: 12px}
.TxtHigh02 { color: #CC3333; font-size: 8.5pt}
.TxtHigh03 { color: #CC3333; font-size: 10pt}
What would be the best approach (if one exists) to implement this example in such a way that it does not need to be changed in 3 places if the colour scheme changes? In VB I would use a constant but I am aware this is not an option in CSS.
Thanks in advance.