Edit in JSFiddle

<p class="one two">Venus</p>
<p class="two three">Earth</p>
<p class="four">mars</p>
p[class~="two"] {font-style: italic;}