Skip to content

Instantly share code, notes, and snippets.

@nowelium
Created August 30, 2011 02:44
Show Gist options
  • Select an option

  • Save nowelium/1180048 to your computer and use it in GitHub Desktop.

Select an option

Save nowelium/1180048 to your computer and use it in GitHub Desktop.
#foo .a + .b {
background-color: red;
}
#foo .a .b {
background-color: blue;
}
<div id="foo">
<div class="a">
<div class="b">
<p>a .. b</p>
</div>
</div>
<div class="b">
<p>b</p>
</div>
</div>
@vwainne

vwainne commented Nov 26, 2013

Copy link
Copy Markdown

What was this supposed to do?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment