Ok here's my div structure
<div id="ad"></div>
<div id="campaign"></div>
I want the CSS basically to set a style to the "ad" div when it appears back to back to the campaign DIV. I know that #ad+#campaign will just target the 'campaign' div. Is there a way to write it so that I can target the ad div when they appear in the page in that structure?