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.
1.4m articles
1.4m replys
5 comments
57.0k users