Is it possible to assign properties of one CSS class to another class? If it can not be done with CSS, I can use server-side scripting to pass variables.
For example, if I have a list of classes from .myclass1 to .myclass20 and I know that for user7 I need to replace .myDefault with myClass7, how can I do that?
You want all properties in a class to be inherited by another class in CSS.
Not for both classes to be applied on an object dynamically by JS.
That can’t be done directly with CSS and a JS approach would consume quite a bit of time for you to implement.
Best choice is for you to look into less css.
It does what you want, either server side or clientside.