.foo { background-color: black; color: white; font-family: Arial; font-size: 12px; } .bar { background-color: #333333; color: white; font-family: Arial; font-size: 12px; } .foo a, .bar a { color: #CCCC00; text-decoration: none; }