css multiple classes same rule code example

Example 1: css multiple classes same rule

.bucket1, .bucket2, .bucket3 {
}

.bucket4, .bucket5, .bucket6 {
}

Example 2: css change multiple classes

.objectOne, .objectTwo { /* We will now both be changed */
	margin: 0 auto; 
}

Example 3: how to apply different properties to different paragraphs in css

/*Here two ways are mentioned*/
#one{
    font-family: 'Impact';
    color: red;
    font-size: 25px;
}
#two{
    font-family: 'Times New Roman';
    color: blue;
    font-size: 50px;
}
.three{
    font-family: 'Impact';
    color: red;
    font-size: 25px;
}
.four{
    font-family: 'Times New Roman';
    color: blue;
    font-size: 50px;
}

Tags:

Html Example