<style type="text/css"> .c1 { color: red; } .c2 { color: blue; } </style> <span class="c1 c2">asdf</span> <span class="c2 c1">asdf</span>