I want to target all but first elements with class "icon-flight-close" in the HTML presented below. I've determined that I am unable to do so, because of the header element, which does not have this class, but it has the same parent and is defined at the beginning.
In the first case I place the header at the beginning of the #flights div and in the second case I place it at the end and then styles are applied the way I want.
HTML:
<div id="flights" class="form-group col-sm-12">
<div id="flights-heading-wrapper">
<label class="heading-big">Flights</label>
</div>
<div class="flight row">
<div class="hand-cursor icon-flight-close col-sm-12 text-left"><div><p>aaaa</p></div></div>
</div>
<div class="flight row">
<div class="hand-cursor icon-flight-close col-sm-12 text-left"><div><p>bbbbb</p></div></div>
</div>
<div class="flight row">
<div class="hand-cursor icon-flight-close col-sm-12 text-left"><div><p>bbbbb</p></div></div>
</div>
</div>
<div id="flights" class="form-group col-sm-12">
<div class="flight row">
<div class="hand-cursor icon-flight-close col-sm-12 text-left"><div><p>aaaa</p></div></div>
</div>
<div class="flight row">
<div class="hand-cursor icon-flight-close col-sm-12 text-left"><div><p>bbbbb</p></div></div>
</div>
<div class="flight row">
<div class="hand-cursor icon-flight-close col-sm-12 text-left"><div><p>bbbbb</p></div></div>
</div>
<div id="flights-heading-wrapper">
<label class="heading-big">Flights</label>
</div>
</div>
CSS:
.flight:not(:first-child) .icon-flight-close{
color: red;
}
Here it how it looks like: http://jsfiddle.net/gxz9uke2/2/