How to give a css code for combined classes in HTML [duplicate]
This question already has an answer here:
- Select element based on multiple classes 2 answers
I have got two classes coming under list "active" and "main-tab-list like and want to give a css for this combined classes.
Just cascade them
This ensures that only .main-tab-list which are active will be selected. Other classes who also have .active class on it won't be affected. It simply says, apply this rule to all .main-tab-list classes which at the same time have .active class