css apply style to two classes code example
Example 1: css multiple classes
//HTML Code
<div class = 'firstClass secondClass'></div>
//CSS Code
.firstClass.secondClass {
}
Example 2: css change multiple classes
.objectOne, .objectTwo { /* We will now both be changed */
margin: 0 auto;
}
Example 3: relate a style in two class
.abc, .xyz {
margin-left: 20px;
}