I’ve got several CSS elements that I’d like to group.
At the moment I’m using:
.elementA {
padding: 3px;
}
.elementB {
padding: 3px;
}
I’d like to combine them into one rule to avoid repeating stuff over and over again. E.g.
.elementA and .elementB {
padding: 3px;
}
How do you do this?
Try this
Reference http://www.smileycat.com/miaow/archives/000152.php