css - How can I apply styles to multiple classes at once? -
i want 2 classes different names have same property in css. don't want repeat code.
.abc { margin-left:20px; } .xyz { margin-left:20px; }
<a class="abc">lorem</a> <a class="xyz">ipsum</a>
since both classes doing same thing, should able merge one. how can that?
.abc, .xyz { margin-left: 20px; }
is looking for.
Comments
Post a Comment