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

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

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