<!doctype html>
<meta charset="utf-8">
<style>
  .foo {
    color:blue;
    background-color:yellow;
  }
  .bar {
    background-color:orange;
  }
  .bar-over-foo {
    color:blue;
    background-color:orange;
  }
</style>
<body><span class="foo">Som</span><span class="bar-over-foo">e t</span><span class="bar">ext</span>