I would like to select all elements that have both one class AND another class. For example, in the following markup, I only want to select elements containing class "foo" and class "bar", but not those that have only one of those classes:
<p class="foo">Larry</p>
<p class="bar">Moe</p>
<p class="foo bar">Curly</p>
Is there a way in CSS to apply styles only to the paragraph containing "Curly" in the above example?