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#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

c# - Making TableLayoutPanel Act Like An HTML Table (Cells That Resize Automatically Around Text) -