Usual way to do this within css is to give the elements a class 'statusMessage' in addition to their unique ids. Then you can create a css rule with a selector that will affect all elements with that class. Eg
.statusMessage {color: red;}
Remember that elements can have more than one class. Eg