I want two classes with different names to have the same property in CSS. I don't want to repeat the code.
.abc { margin-left:20px; } .xyz { margin-left:20px; }
<a class="abc">Lorem</a> <a class="xyz">Ipsum</a>
.abc, .xyz { margin-left: 20px; }
is what you are looking for.
2.1m questions
2.1m answers
60 comments
57.0k users