Certo che c'è:

#div1, #div2{
color: red;
padding:5px;
}

#div1{
margin:10px;
}

#div2{
margin:8px;
}

Spero ti è chiaro come esempio.