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

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -