Adjacent Sibling Selectors and IE

Author: Dave Cassel  |  Category: Software Development

I came across an interesting little gotcha today while working with CSS’ adjacent sibling selectors. First, a quick intro, in case you’re not familiar with them. <div class=”content”> <h1>Big News</h1> <p>Intro paragraph.</p> <p>Meaningless drivel</p> </div> Sibling selectors let you apply styles to an element based on what it’s next to, rather than the usual way […]